diff --git a/libs/client-sdk/tests/client_c_bindings_test.cpp b/libs/client-sdk/tests/client_c_bindings_test.cpp index f0b91cc35..82bb0e0f5 100644 --- a/libs/client-sdk/tests/client_c_bindings_test.cpp +++ b/libs/client-sdk/tests/client_c_bindings_test.cpp @@ -148,6 +148,8 @@ TEST(ClientBindings, GetStatusOfOfflineClient) { bool success = false; LDClientSDK_Start(sdk, 3000, &success); + EXPECT_TRUE(success); + LDDataSourceStatus status_2 = LDClientSDK_DataSourceStatus_Status(sdk); EXPECT_EQ(LD_DATASOURCESTATUS_STATE_OFFLINE, LDDataSourceStatus_GetState(status_2)); @@ -156,6 +158,8 @@ TEST(ClientBindings, GetStatusOfOfflineClient) { EXPECT_NE(0, LDDataSourceStatus_StateSince(status_2)); + EXPECT_TRUE(LDClientSDK_Initialized(sdk)); + LDDataSourceStatus_Free(status_1); LDDataSourceStatus_Free(status_2); LDClientSDK_Free(sdk);