Skip to content

Commit c73b593

Browse files
authored
Mitigate flakey test in tf2_ros (#490)
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.
1 parent dae26a2 commit c73b593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2_ros/test/time_reset_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void spin_for_a_second()
4141
ros::spinOnce();
4242
for (uint8_t i = 0; i < 10; ++i)
4343
{
44-
std::this_thread::sleep_for(std::chrono::microseconds(100));
44+
std::this_thread::sleep_for(std::chrono::milliseconds(100));
4545
ros::spinOnce();
4646
}
4747
}

0 commit comments

Comments
 (0)