Skip to content

Commit

Permalink
fix: Fix unstable RetryScheduler test case
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Jul 17, 2024
1 parent 85694e6 commit dc54489
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/general/test_retry_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@ TEST_F_S(Schedule, ImmediateExecution) {
},
1ms);

while (!first_call_scheduler_thread_id || !second_call_scheduler_thread_id) {
while (m_impl.isScheduled()) {
std::this_thread::sleep_for(1ms);
}

EXPECT_FALSE(m_impl.isScheduled());
EXPECT_TRUE(first_call_scheduler_thread_id);
EXPECT_TRUE(second_call_scheduler_thread_id);

Expand Down

0 comments on commit dc54489

Please sign in to comment.