File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
tests/auto/foundation/core_application Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ TEST_CASE("Timer handling" * doctest::timeout(120))
244244 Timer timer;
245245
246246 // Set initial interval to 100ms
247- timer.interval = 100ms ;
247+ timer.interval = 1000ms ;
248248 timer.running = true;
249249
250250 bool fired = false;
@@ -254,19 +254,19 @@ TEST_CASE("Timer handling" * doctest::timeout(120))
254254 });
255255
256256 // After 50ms, timer shouldn't have yet fired
257- app.processEvents(50 );
257+ app.processEvents(500 );
258258 REQUIRE(fired == false);
259259
260260 // Reset interval, it should fire 150ms from now
261- timer.interval = 150ms ;
261+ timer.interval = 1500ms ;
262262
263263 // Advance 100ms, it should _not_ yet fire because it was
264264 // restarted to 150ms even though the original timeout passed
265- app.processEvents(100 );
265+ app.processEvents(1000 );
266266 REQUIRE(fired == false);
267267
268268 // It should fire after additional 100ms
269- app.processEvents(100 );
269+ app.processEvents(1000 );
270270 REQUIRE(fired == true);
271271 }
272272}
You can’t perform that action at this time.
0 commit comments