From: Nikita Popov Date: Thu, 4 Mar 2021 16:01:25 +0000 (+0100) Subject: Reduce threshold in ext/date/tests/bug73837.phpt X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=670b19af3ebe17810a84216c2e0428fdacdceab7;p=php Reduce threshold in ext/date/tests/bug73837.phpt Now that this code is faster, we're seeing many spurious failures. --- 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)