Explicitly join test threads before collecting test stats

This commit is contained in:
Tyler Neely 2022-11-17 21:28:17 +00:00
parent cf73ed529d
commit 9c3d683942

View File

@ -224,6 +224,10 @@ std::pair<SimulatorStats, LatencyHistogramSummaries> RunSimulation(SimulatorConf
simulator.ShutDown();
srv_thread_1.join();
srv_thread_2.join();
srv_thread_3.join();
SimulatorStats stats = simulator.Stats();
spdlog::info("total messages: {}", stats.total_messages);