Skip to content

Commit

Permalink
Mitigate flakey test in tf2_ros (#490)
Browse files Browse the repository at this point in the history
transform_listener_backwards_reset fails almost 100% on my AMD EPYC
environment. Sleep by spin_for_a_second() seems to be too small and
slept only a millisecond.
Fix it to a second to match with the function name.
This makes the test possible to pass on EPYC environment.
  • Loading branch information
at-wat authored Jan 6, 2021
1 parent dae26a2 commit c73b593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf2_ros/test/time_reset_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void spin_for_a_second()
ros::spinOnce();
for (uint8_t i = 0; i < 10; ++i)
{
std::this_thread::sleep_for(std::chrono::microseconds(100));
std::this_thread::sleep_for(std::chrono::milliseconds(100));
ros::spinOnce();
}
}
Expand Down

0 comments on commit c73b593

Please sign in to comment.