diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-13 16:31:13 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-13 16:31:13 +0100 |
commit | ca4c004d473ad5ed02abd4a7beff3a5a65c83487 (patch) | |
tree | e159d14b61e3535f84291c26c90c120debe9900a | |
parent | 66b0a4e535759df5381972c15b1babcf0fb30154 (diff) |
made test less strict
-rw-r--r-- | src/test/LoopTimerTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/LoopTimerTest.cpp b/src/test/LoopTimerTest.cpp index 6391076..7bd6305 100644 --- a/src/test/LoopTimerTest.cpp +++ b/src/test/LoopTimerTest.cpp @@ -30,7 +30,7 @@ TEST_F(LoopTimerTest, EnforcesTargetFrameRate) { auto elapsed_ms = duration_cast<milliseconds>(elapsed_time).count(); // For 60 FPS, the target frame time is around 16.67ms - ASSERT_NEAR(elapsed_ms, 16.7, 1); + ASSERT_NEAR(elapsed_ms, 16.7, 5); } TEST_F(LoopTimerTest, SetTargetFps) { |