From 16adeb2a9d74c9455f9f766dc4606212ca7a12cf Mon Sep 17 00:00:00 2001 From: Aleksey Loginov Date: Mon, 30 Sep 2024 22:31:53 +0300 Subject: [PATCH] fix threads --- src/tests/rpp/test_scheduler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")