Skip to content

Commit 7f02b5f

Browse files
committed
Slightly increase tolerance in time_sleep_until() test
With the 1ms tolerance this still occasionally fails on macos. I love macos. It always works and causes no problems at all.
1 parent fc6e83e commit 7f02b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/tests/misc/time_sleep_until_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
3030
}
3131

3232
// Add some tolerance for early wake on macos. Reason unknown.
33-
if ($now + 0.001 >= $sleepUntil) {
33+
if ($now + 0.002 >= $sleepUntil) {
3434
echo "Success\n";
3535
} else {
3636
echo "Sleep until (before truncation): ", $time, "\n";

0 commit comments

Comments
 (0)