Skip to content

Commit

Permalink
Update auth timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed Jun 15, 2024
1 parent 8a1bed7 commit a15bedf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_service_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ TEST(service_client, auth_timeout) {

service.process_messages_async();

while (service.connections() != 0 || client.is_connected()) {
while (service.connections() != 0) {
std::this_thread::sleep_for(std::chrono::milliseconds(20));
}

EXPECT_FALSE(client.is_connected());
EXPECT_TRUE(service.client_connected);
EXPECT_TRUE(service.client_disconnected);
EXPECT_TRUE(service.dc_code == libnetwrk::disconnect_code::authentication_failed);
Expand Down

0 comments on commit a15bedf

Please sign in to comment.