From 638f9818180672888f4e43c91a66028b306549b7 Mon Sep 17 00:00:00 2001 From: Gulliver Date: Mon, 30 Sep 2024 00:15:25 +0200 Subject: [PATCH] changes sleep times and default timeout raised --- tests/unittest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unittest.cpp b/tests/unittest.cpp index 4f3d75812..316d5b1fc 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -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; @@ -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);