Skip to content

Commit 2d1b770

Browse files
authored
fix: make the loop condition align with the description (#2726)
Signed-off-by: yuanyuyuan <[email protected]>
1 parent 80768ed commit 2d1b770

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rclcpp/test/rclcpp/executors/test_executors.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,7 @@ TYPED_TEST(TestExecutors, notifyTwiceWhileSpinning)
749749
this->publisher->publish(test_msgs::msg::Empty());
750750
start = std::chrono::steady_clock::now();
751751
while (
752-
sub1_msg_count == 1 &&
753-
sub2_msg_count == 0 &&
752+
(sub1_msg_count == 1 || sub2_msg_count == 0) &&
754753
(std::chrono::steady_clock::now() - start) < 10s)
755754
{
756755
std::this_thread::sleep_for(1ms);

0 commit comments

Comments
 (0)