We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 55f4cf2 + 3c8382e commit debb34fCopy full SHA for debb34f
packages/framework/tests/Feature/TracksExecutionTimeTest.php
@@ -21,7 +21,8 @@ public function test_startClock()
21
22
$this->assertTrue($class->isset('timeStart'));
23
$this->assertIsFloat($class->timeStart);
24
- $this->assertSame(round(microtime(true)), round($class->timeStart));
+ // Assert that the difference between the two is less than 1 second to account for time drift (causes 1/10 000 tests to fail)
25
+ $this->assertLessThan(1, abs((microtime(true)) - ($class->timeStart)));
26
}
27
28
public function test_stopClock()
0 commit comments