Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Sep 30, 2024
1 parent 3a57bb9 commit 1626450
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/client-sdk/tests/client_c_bindings_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
Expand Down

0 comments on commit 1626450

Please sign in to comment.