Skip to content

Commit

Permalink
fix TestTimeSource.ROS_time_valid_attach_detach. (#2700)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored Dec 9, 2024
1 parent a7f05a9 commit 8c0161a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rclcpp/test/rclcpp/test_time_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ TEST_F(TestTimeSource, ROS_time_valid_attach_detach) {
ts.attachNode(node);
EXPECT_FALSE(ros_clock->ros_time_is_active());

ts.attachClock(ros_clock);
EXPECT_FALSE(ros_clock->ros_time_is_active());

ts.detachClock(ros_clock);
EXPECT_FALSE(ros_clock->ros_time_is_active());
}
Expand Down

0 comments on commit 8c0161a

Please sign in to comment.