From c0ecdffe3b059f90170b923d154cc4808c4ba1ef Mon Sep 17 00:00:00 2001 From: Gulliver Date: Mon, 25 Nov 2024 10:22:50 +0100 Subject: [PATCH] adapted timeouts of sleep --- tests/unittest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unittest.cpp b/tests/unittest.cpp index 53f083c07..e78a01384 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -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);