Skip to content

Commit

Permalink
fix: make the loop condition align with the description (#2726)
Browse files Browse the repository at this point in the history
Signed-off-by: yuanyuyuan <[email protected]>
  • Loading branch information
YuanYuYuan authored Jan 14, 2025
1 parent 80768ed commit 2d1b770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rclcpp/test/rclcpp/executors/test_executors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,7 @@ TYPED_TEST(TestExecutors, notifyTwiceWhileSpinning)
this->publisher->publish(test_msgs::msg::Empty());
start = std::chrono::steady_clock::now();
while (
sub1_msg_count == 1 &&
sub2_msg_count == 0 &&
(sub1_msg_count == 1 || sub2_msg_count == 0) &&
(std::chrono::steady_clock::now() - start) < 10s)
{
std::this_thread::sleep_for(1ms);
Expand Down

0 comments on commit 2d1b770

Please sign in to comment.