diff --git a/src/tests/rpp/test_scheduler.cpp b/src/tests/rpp/test_scheduler.cpp index 32a8d6601..5167da976 100644 --- a/src/tests/rpp/test_scheduler.cpp +++ b/src/tests/rpp/test_scheduler.cpp @@ -756,13 +756,15 @@ TEST_CASE("new_thread works till end") | rpp::operators::subscribe_on(rpp::schedulers::new_thread{}) | rpp::operators::subscribe(mock); - CHECK(!last->is_satisfied()); + const bool before = last->is_satisfied(); wait(last); while (!done->load()) { }; + + CHECK(!before); } TEST_CASE("run_loop scheduler dispatches tasks only manually")