Skip to content

Commit a8ea102

Browse files
committed
Add comment
1 parent 91981a9 commit a8ea102

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/web/ng/impl/WsConnectionTests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ TEST_F(WebWsConnectionTests, DisconnectClientOnInactivity)
125125
wsClient_.connect("localhost", httpServer_.port(), yield, std::chrono::milliseconds{100});
126126
[&]() { ASSERT_TRUE(expectedSuccess.has_value()) << expectedSuccess.error().message(); }();
127127
std::unique_lock lock{mutex};
128+
// Wait for 2 seconds to not block the test infinitely in case of failure
128129
auto const gotNotified = cv.wait_for(lock, std::chrono::seconds{2}, [&finished]() { return finished; });
129130
[&]() { EXPECT_TRUE(gotNotified); }();
130131
work.reset();

0 commit comments

Comments
 (0)