Fix race condition in unit test websocket.bootstrap (#3365)

This commit is contained in:
dsiganos 2021-07-03 21:02:54 +01:00 committed by GitHub
commit f27162531e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);