From 1f87cd2b54ddadfb8e439139b136e26876799993 Mon Sep 17 00:00:00 2001 From: Tony Najjar Date: Tue, 8 Aug 2023 16:34:06 +0200 Subject: [PATCH] fix too little timeout --- rclcpp/test/rclcpp/test_executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rclcpp/test/rclcpp/test_executor.cpp b/rclcpp/test/rclcpp/test_executor.cpp index a62cd08dff..706b80aef1 100644 --- a/rclcpp/test/rclcpp/test_executor.cpp +++ b/rclcpp/test/rclcpp/test_executor.cpp @@ -559,7 +559,7 @@ TEST_F(TestExecutor, spin_node_all_base_interface) { // Wait for the wall timer to have expired. std::this_thread::sleep_for(std::chrono::milliseconds(50)); EXPECT_FALSE(spin_called); - dummy.spin_node_all(node->get_node_base_interface(), std::chrono::nanoseconds(1000)); + dummy.spin_node_all(node->get_node_base_interface(), std::chrono::milliseconds(50)); EXPECT_TRUE(spin_called); } @@ -576,7 +576,7 @@ TEST_F(TestExecutor, spin_node_all_node) { // Wait for the wall timer to have expired. std::this_thread::sleep_for(std::chrono::milliseconds(50)); EXPECT_FALSE(spin_called); - dummy.spin_node_all(node, std::chrono::nanoseconds(1000)); + dummy.spin_node_all(node, std::chrono::milliseconds(50)); EXPECT_TRUE(spin_called); }