From bd8e8d292690e4ab3ce6f13225a2f4a67092f6a2 Mon Sep 17 00:00:00 2001 From: Tony Najjar Date: Mon, 7 Aug 2023 13:18:44 +0200 Subject: [PATCH] fix test Signed-off-by: Tony Najjar --- 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 021e6da79d..a62cd08dff 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()); + dummy.spin_node_all(node->get_node_base_interface(), std::chrono::nanoseconds(1000)); 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); + dummy.spin_node_all(node, std::chrono::nanoseconds(1000)); EXPECT_TRUE(spin_called); }