diff --git a/testing/ecal/ecal_tcp_service_test/src/ecal_tcp_service_test.cpp b/testing/ecal/ecal_tcp_service_test/src/ecal_tcp_service_test.cpp index 680d664334..63404903fa 100644 --- a/testing/ecal/ecal_tcp_service_test/src/ecal_tcp_service_test.cpp +++ b/testing/ecal/ecal_tcp_service_test/src/ecal_tcp_service_test.cpp @@ -2456,7 +2456,7 @@ TEST(BlockingCall, Stopped) // TODO: This test shows the proper way to stop ever constexpr int num_calls = 5; std::vector> call_threads; - std::atomic callbacks_completed = 0; + std::atomic callbacks_completed(0); for (int i = 0; i < num_calls; i++) {