Skip to content

Commit

Permalink
adapted timeouts of sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
gittiver committed Nov 25, 2024
1 parent 52a213d commit db06896
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3980,13 +3980,13 @@ TEST_CASE("task_timer")
b = true;
});

this_thread::sleep_for(4 * timer.get_tick_length());
this_thread::sleep_for(3 * timer.get_tick_length());
CHECK(a == false);
CHECK(b == false);
this_thread::sleep_for(2 * timer.get_tick_length());
this_thread::sleep_for(3 * timer.get_tick_length());
CHECK(a == true);
CHECK(b == false);
this_thread::sleep_for(4 * timer.get_tick_length());
this_thread::sleep_for(5 * timer.get_tick_length());
CHECK(a == true);
CHECK(b == true);

Expand Down

0 comments on commit db06896

Please sign in to comment.