Skip to content

Commit b1f31e0

Browse files
authored
min_forward & min_backward thresholds must not be disabled (#1815)
Signed-off-by: Shane Loretz <[email protected]>
1 parent e2aeb10 commit b1f31e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rclcpp/test/rclcpp/test_time_source.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ class CallbackObject
304304
TEST_F(TestTimeSource, callbacks) {
305305
CallbackObject cbo;
306306
rcl_jump_threshold_t jump_threshold;
307-
jump_threshold.min_forward.nanoseconds = 0;
308-
jump_threshold.min_backward.nanoseconds = 0;
307+
jump_threshold.min_forward.nanoseconds = 1;
308+
jump_threshold.min_backward.nanoseconds = -1;
309309
jump_threshold.on_clock_change = true;
310310

311311
rclcpp::TimeSource ts(node);
@@ -396,8 +396,8 @@ TEST_F(TestTimeSource, callbacks) {
396396
TEST_F(TestTimeSource, callback_handler_erasure) {
397397
CallbackObject cbo;
398398
rcl_jump_threshold_t jump_threshold;
399-
jump_threshold.min_forward.nanoseconds = 0;
400-
jump_threshold.min_backward.nanoseconds = 0;
399+
jump_threshold.min_forward.nanoseconds = 1;
400+
jump_threshold.min_backward.nanoseconds = -1;
401401
jump_threshold.on_clock_change = true;
402402

403403
rclcpp::TimeSource ts(node);

0 commit comments

Comments
 (0)