diff --git a/tdactor/test/actors_bugs.cpp b/tdactor/test/actors_bugs.cpp index 678611f3d..a08cb3865 100644 --- a/tdactor/test/actors_bugs.cpp +++ b/tdactor/test/actors_bugs.cpp @@ -82,6 +82,8 @@ class TimeoutManager : public Actor { void test_timeout() { CHECK(count > 0); + // we must yield scheduler, so run_main breaks immediately, if timeouts are handled immediately + Scheduler::instance()->yield(); } MultiTimeout test_timeout_{"TestTimeout"};