From 8222ca4837ddee50b1f0f2154bb273f68f842aee Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 27 May 2023 22:46:27 +0300 Subject: [PATCH] Update test_stopwatch.cpp --- tests/test_stopwatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_stopwatch.cpp b/tests/test_stopwatch.cpp index 61e37698..33436fd5 100644 --- a/tests/test_stopwatch.cpp +++ b/tests/test_stopwatch.cpp @@ -39,6 +39,6 @@ TEST_CASE("stopwatch2", "[stopwatch]") auto val = std::stod(test_sink->lines()[0]); auto diff_duration = duration_cast>(stop - start); - REQUIRE(val >= diff_duration.count()); + REQUIRE(val >= (diff_duration - milliseconds(3)).count()); REQUIRE(val <= (diff_duration + tolerance_duration).count()); }