diff --git a/tests/test_stopwatch.cpp b/tests/test_stopwatch.cpp index 33436fd5..81827b87 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 - milliseconds(3)).count()); + REQUIRE(val >= (diff_duration).count() - 0.001); REQUIRE(val <= (diff_duration + tolerance_duration).count()); }