summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-04 17:01:25 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-04 17:02:02 +0100
commit670b19af3ebe17810a84216c2e0428fdacdceab7 (patch)
tree494c32742a34414d624619b550339fccdf61853f
parentc639d34a6e2972dce9679b474c768b434703e1a6 (diff)
downloadphp-git-670b19af3ebe17810a84216c2e0428fdacdceab7.tar.gz
Reduce threshold in ext/date/tests/bug73837.phpt
Now that this code is faster, we're seeing many spurious failures.
-rw-r--r--ext/date/tests/bug73837.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/date/tests/bug73837.phpt b/ext/date/tests/bug73837.phpt
index c11aa2c56b..e9deaff51f 100644
--- a/ext/date/tests/bug73837.phpt
+++ b/ext/date/tests/bug73837.phpt
@@ -11,8 +11,9 @@ for ( $i = 0; $i < 1000; $i++ )
$collect[$key] = true;
}
+// For low-resolution clocks, we may construct many objects in the same tick.
var_dump($n = count( $collect ));
-echo ( $n > 700 ) ? "microseconds differ\n" : "microseconds do not differ enough ($n)\n";
+echo $n > 500 ? "microseconds differ\n" : "microseconds do not differ enough ($n)\n";
?>
--EXPECTF--
int(%d)