From 6b89f7090d7c29666a90798a56aeb8cd282e4cfe Mon Sep 17 00:00:00 2001 From: Guilherme Lawless Date: Wed, 6 May 2020 14:27:44 +0100 Subject: [PATCH] [TSAN] race for system in test websocket.bootstrap_exited (#2757) --- nano/core_test/websocket.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nano/core_test/websocket.cpp b/nano/core_test/websocket.cpp index f35f406c3..de0559d28 100644 --- a/nano/core_test/websocket.cpp +++ b/nano/core_test/websocket.cpp @@ -782,10 +782,9 @@ TEST (websocket, bootstrap_exited) nano::util::counted_completion subscribed_completion (1); std::thread bootstrap_thread ([node1, &system, &bootstrap_started, &subscribed_completion]() { std::shared_ptr attempt; - system.deadline_set (5s); while (attempt == nullptr) { - ASSERT_NO_ERROR (system.poll ()); + std::this_thread::sleep_for (50ms); node1->bootstrap_initiator.bootstrap (true, "123abc"); attempt = node1->bootstrap_initiator.current_attempt (); }