Skip to content

Commit

Permalink
to fix flaky test about TestTimeSource.callbacks (#2111)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
  • Loading branch information
Chen Lihui authored Feb 24, 2023
1 parent f57f407 commit 9ea55ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/test/rclcpp/test_time_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void spin_until_time(

executor.spin_once(10ms);

if (clock->now().nanoseconds() >= end_time.count()) {
if (clock->now().nanoseconds() == end_time.count()) {
return;
}
}
Expand Down

0 comments on commit 9ea55ba

Please sign in to comment.