From ad587eaf8d62c30656cfe58b8402975e743098e0 Mon Sep 17 00:00:00 2001 From: superp00t Date: Sun, 30 Jul 2023 15:13:44 -0400 Subject: [PATCH] test(time): test can tolerate system hiccups --- test/Time.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Time.cpp b/test/Time.cpp index 2d1ad8f..3245ace 100644 --- a/test/Time.cpp +++ b/test/Time.cpp @@ -1,4 +1,5 @@ #include "bc/Time.hpp" +#include "bc/time/TimeConst.hpp" #include "bc/Process.hpp" #include "test/Test.hpp" @@ -27,9 +28,8 @@ TEST_CASE("Blizzard::Time::GetTimestamp", "[time]") { Blizzard::Process::Sleep(200); auto t2 = Blizzard::Time::GetTimestamp(); auto delta = t2 - t1; - REQUIRE(delta > 0); - REQUIRE(delta >= 180000000LL); - REQUIRE(delta <= 220000000LL); + REQUIRE(t2 > t1); + REQUIRE(delta >= 100000000); } }