Fix race condition in unit test websocket.bootstrap (#3365)
This commit is contained in:
parent
f594d0ba68
commit
f27162531e
1 changed files with 1 additions and 1 deletions
|
@ -724,7 +724,7 @@ TEST (websocket, bootstrap)
|
|||
|
||||
// Start bootstrap attempt
|
||||
node1->bootstrap_initiator.bootstrap (true, "123abc");
|
||||
ASSERT_NE (nullptr, node1->bootstrap_initiator.current_attempt ());
|
||||
ASSERT_TIMELY (5s, nullptr == node1->bootstrap_initiator.current_attempt ());
|
||||
|
||||
// Wait for the bootstrap notification
|
||||
ASSERT_TIMELY (5s, future.wait_for (0s) == std::future_status::ready);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue