aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 19:16:03 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 19:16:03 +0100
commit37f352c20cdf3c972ad99b076bb091f698132312 (patch)
tree4993720597c9c631daff841bc9c956e2c297cfca
parent1087daecae46cd7acc3f64c5169e56f59953b599 (diff)
testing less strict
-rw-r--r--src/test/LoopManagerTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/LoopManagerTest.cpp b/src/test/LoopManagerTest.cpp
index cf7a454..af89d64 100644
--- a/src/test/LoopManagerTest.cpp
+++ b/src/test/LoopManagerTest.cpp
@@ -27,8 +27,8 @@ TEST_F(LoopManagerTest, FixedUpdate) {
test_loop.loop_timer.set_target_framerate(60);
// Set expectations for the mock calls
- EXPECT_CALL(test_loop, frame_update).Times(::testing::Exactly(60));
- EXPECT_CALL(test_loop, fixed_update).Times(::testing::Exactly(49));
+ EXPECT_CALL(test_loop, frame_update).Times(::testing::Between(55, 65));
+ EXPECT_CALL(test_loop, fixed_update).Times(::testing::Between(48, 52));
// Start the loop in a separate thread
std::thread loop_thread([&]() { test_loop.start(); });
@@ -48,8 +48,8 @@ TEST_F(LoopManagerTest, ScaledFixedUpdate) {
test_loop.loop_timer.set_target_framerate(60);
// Set expectations for the mock calls
- EXPECT_CALL(test_loop, frame_update).Times(::testing::Exactly(60));
- EXPECT_CALL(test_loop, fixed_update).Times(::testing::Exactly(49));
+ EXPECT_CALL(test_loop, frame_update).Times(::testing::Between(55, 65));
+ EXPECT_CALL(test_loop, fixed_update).Times(::testing::Between(48, 52));
// Start the loop in a separate thread
std::thread loop_thread([&]() { test_loop.start(); });