From 670b19af3ebe17810a84216c2e0428fdacdceab7 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 4 Mar 2021 17:01:25 +0100 Subject: Reduce threshold in ext/date/tests/bug73837.phpt Now that this code is faster, we're seeing many spurious failures. --- ext/date/tests/bug73837.phpt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1