diff --git a/nano/core_test/websocket.cpp b/nano/core_test/websocket.cpp index 1c946b28..abe3c5ff 100644 --- a/nano/core_test/websocket.cpp +++ b/nano/core_test/websocket.cpp @@ -878,7 +878,7 @@ TEST (websocket, bootstrap_excited) // Start bootstrap, exit after subscription std::atomic bootstrap_started{ false }; std::atomic subscribed{ false }; - std::thread bootstrap_thread ([&system, node1, &bootstrap_started, &subscribed](){ + std::thread bootstrap_thread ([&system, node1, &bootstrap_started, &subscribed]() { node1->bootstrap_initiator.bootstrap (true, "123abc"); auto attempt (node1->bootstrap_initiator.current_attempt ()); ASSERT_NE (nullptr, attempt); @@ -913,7 +913,6 @@ TEST (websocket, bootstrap_excited) } ASSERT_EQ (1, node1->websocket_server->subscriber_count (nano::websocket::topic::bootstrap)); - // Wait for the bootstrap notification subscribed = true; bootstrap_thread.join ();