Skip to content

Commit 7ea94bc

Browse files
committed
support: fix failing io_timer_source_test
1 parent 90a1ce3 commit 7ea94bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unittests/support/network/io_timer_source_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ TEST_F(io_timer_source_test, timer_gets_ticked_when_source_starts)
5555
ASSERT_GT(count, 1);
5656
fmt::print("Tick count: expected={} actual={}\n", run_duration / timer_period, count);
5757

58+
// Stop timer.
5859
stop();
60+
worker.run_pending_tasks(); // ensures no pending tasks before we reset count
61+
5962
count = 0;
6063
std::this_thread::sleep_for(std::chrono::milliseconds{10});
6164
worker.run_pending_tasks();

0 commit comments

Comments
 (0)