summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-01-03 16:48:06 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-01-03 16:49:15 +0100
commit7f02b5fc472303cc395ebcbe8ac9ed89ff8b4425 (patch)
tree11ff876a62e992694fc14f06ad0e7400993cc457
parentfc6e83e01a187d48a54fd821e0cc2aad1dcfeab5 (diff)
downloadphp-git-7f02b5fc472303cc395ebcbe8ac9ed89ff8b4425.tar.gz
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.
-rw-r--r--ext/standard/tests/misc/time_sleep_until_basic.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/misc/time_sleep_until_basic.phpt b/ext/standard/tests/misc/time_sleep_until_basic.phpt
index b0d3c8eea5..f26c6a5cee 100644
--- a/ext/standard/tests/misc/time_sleep_until_basic.phpt
+++ b/ext/standard/tests/misc/time_sleep_until_basic.phpt
@@ -30,7 +30,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
}
// Add some tolerance for early wake on macos. Reason unknown.
-if ($now + 0.001 >= $sleepUntil) {
+if ($now + 0.002 >= $sleepUntil) {
echo "Success\n";
} else {
echo "Sleep until (before truncation): ", $time, "\n";