From c90f086b7019ad59642dcc10e6f67549462954d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Thu, 4 Apr 2024 20:09:43 +0200 Subject: [PATCH] Increased time in test_multithreaded (#543) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- test_rclcpp/test/test_multithreaded.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_rclcpp/test/test_multithreaded.cpp b/test_rclcpp/test/test_multithreaded.cpp index effd80aa..a47073fb 100644 --- a/test_rclcpp/test/test_multithreaded.cpp +++ b/test_rclcpp/test/test_multithreaded.cpp @@ -392,8 +392,8 @@ static inline void multi_access_publisher(bool intra_process) }; // wait orders of magnitude longer than technically required to allow for system hiccups - auto time_to_wait = std::chrono::milliseconds(number_of_messages_per_timer * timer_period * 100); - auto time_between_checks = time_to_wait / 100; + auto time_to_wait = std::chrono::milliseconds(number_of_messages_per_timer * timer_period * 1000); + auto time_between_checks = time_to_wait / 1000; auto start = std::chrono::steady_clock::now(); while (context->is_valid() && std::chrono::steady_clock::now() - start < time_to_wait) { bool all_timers_canceled_bool = all_timers_canceled();