Skip to content

Commit

Permalink
changes sleep times and default timeout raised
Browse files Browse the repository at this point in the history
  • Loading branch information
gittiver committed Sep 29, 2024
1 parent 2583c27 commit 638f981
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 @@ -3922,8 +3922,8 @@ TEST_CASE("task_timer")

crow::detail::task_timer timer(io_service, std::chrono::milliseconds(100));
CHECK(timer.get_default_timeout() == 5);
timer.set_default_timeout(7);
CHECK(timer.get_default_timeout() == 7);
timer.set_default_timeout(9);
CHECK(timer.get_default_timeout() == 9);

timer.schedule([&a]() {
a = true;
Expand All @@ -3938,7 +3938,7 @@ TEST_CASE("task_timer")
this_thread::sleep_for(2 * timer.get_tick_length());
CHECK(a == true);
CHECK(b == false);
this_thread::sleep_for(2 * timer.get_tick_length());
this_thread::sleep_for(4 * timer.get_tick_length());
CHECK(a == true);
CHECK(b == true);

Expand Down

0 comments on commit 638f981

Please sign in to comment.