Skip to content

Commit

Permalink
fix threads (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
victimsnino authored Sep 30, 2024
1 parent 9c328ba commit 5347400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tests/rpp/test_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5347400

Please sign in to comment.