From f27162531ef5e9426e50afddf6711420e1dd225e Mon Sep 17 00:00:00 2001 From: dsiganos Date: Sat, 3 Jul 2021 21:02:54 +0100 Subject: [PATCH] Fix race condition in unit test websocket.bootstrap (#3365) --- nano/core_test/websocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/core_test/websocket.cpp b/nano/core_test/websocket.cpp index 100df8c5..889a9bc6 100644 --- a/nano/core_test/websocket.cpp +++ b/nano/core_test/websocket.cpp @@ -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);