From d937f3d7e01c331045dc96822f2c3b1de148552b Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sat, 16 Oct 2021 09:34:39 -0500 Subject: [PATCH] Widen timing on Interval test --- test/IntervalTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/IntervalTest.php b/test/IntervalTest.php index b299412..ef3f64a 100644 --- a/test/IntervalTest.php +++ b/test/IntervalTest.php @@ -22,11 +22,11 @@ class IntervalTest extends AsyncTestCase } }; - delay(0.035); + delay(0.039); unset($object); // Should destroy PeriodicFunction object and cancel loop watcher. self::assertSame(3, $count); - delay(0.025); + delay(0.029); self::assertSame(3, $count); } @@ -40,11 +40,11 @@ class IntervalTest extends AsyncTestCase ++$count; }); - delay(0.035); + delay(0.039); self::assertSame(1, $count); self::assertFalse($interval->isEnabled()); - delay(0.025); + delay(0.029); self::assertSame(1, $count); } @@ -57,17 +57,17 @@ class IntervalTest extends AsyncTestCase ++$count; }); - delay(0.025); + delay(0.029); self::assertSame(2, $count); $interval->disable(); self::assertFalse($interval->isEnabled()); - delay(0.025); + delay(0.029); self::assertSame(2, $count); $interval->enable(); self::assertTrue($interval->isEnabled()); - delay(0.025); + delay(0.029); self::assertSame(4, $count); } }