mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
make TwitchPubSubClient.DisconnectedAfter1s test less flaky (#5461)
This commit is contained in:
parent
c9a0691f53
commit
d053a681a0
|
@ -179,14 +179,7 @@ TEST(TwitchPubSubClient, DisconnectedAfter1s)
|
||||||
ASSERT_EQ(pubSub.diag.messagesReceived, 2); // Listen RESPONSE & Pong
|
ASSERT_EQ(pubSub.diag.messagesReceived, 2); // Listen RESPONSE & Pong
|
||||||
ASSERT_EQ(pubSub.diag.listenResponses, 1);
|
ASSERT_EQ(pubSub.diag.listenResponses, 1);
|
||||||
|
|
||||||
std::this_thread::sleep_for(350ms);
|
std::this_thread::sleep_for(950ms);
|
||||||
|
|
||||||
ASSERT_EQ(pubSub.diag.connectionsOpened, 1);
|
|
||||||
ASSERT_EQ(pubSub.diag.connectionsClosed, 0);
|
|
||||||
ASSERT_EQ(pubSub.diag.connectionsFailed, 0);
|
|
||||||
ASSERT_EQ(pubSub.diag.messagesReceived, 2);
|
|
||||||
|
|
||||||
std::this_thread::sleep_for(600ms);
|
|
||||||
|
|
||||||
ASSERT_EQ(pubSub.diag.connectionsOpened, 2);
|
ASSERT_EQ(pubSub.diag.connectionsOpened, 2);
|
||||||
ASSERT_EQ(pubSub.diag.connectionsClosed, 1);
|
ASSERT_EQ(pubSub.diag.connectionsClosed, 1);
|
||||||
|
|
Loading…
Reference in a new issue