From 28aa9c9ca4d07fb1223c0c2f8f7084fde0ab1efd Mon Sep 17 00:00:00 2001 From: Joel Anderson Date: Mon, 12 Feb 2024 07:26:30 -0500 Subject: [PATCH] change accept strategy --- test/thread_safety/target/network.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/thread_safety/target/network.cpp b/test/thread_safety/target/network.cpp index 87cc4a9aa..0aa3b8837 100644 --- a/test/thread_safety/target/network.cpp +++ b/test/thread_safety/target/network.cpp @@ -31,7 +31,7 @@ namespace { const int THREAD_COUNT = 8; const int MESSAGE_COUNT = 50; const int WRITE_COUNT = MESSAGE_COUNT / 10; - const int ACCEPT_COUNT = THREAD_COUNT * WRITE_COUNT * 2 + 1; + const int ACCEPT_COUNT = THREAD_COUNT * WRITE_COUNT * 2; void read_network_target( const struct stumpless_target *target, bool is_udp ) { @@ -163,6 +163,7 @@ namespace { false ); // cleanup after the test + listener_thread->join(); stumpless_close_network_target( target ); EXPECT_NO_ERROR; stumpless_free_all( ); @@ -198,6 +199,7 @@ namespace { false ); // cleanup after the test + listener_thread->join(); stumpless_close_network_target( target ); EXPECT_NO_ERROR; stumpless_free_all( );