Skip to content

Commit

Permalink
fix too little timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Najjar committed Aug 8, 2023
1 parent 22a04a1 commit 1f87cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rclcpp/test/rclcpp/test_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down

0 comments on commit 1f87cd2

Please sign in to comment.