]> granicus.if.org Git - php/commitdiff
Reduce threshold in ext/date/tests/bug73837.phpt
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 4 Mar 2021 16:01:25 +0000 (17:01 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 4 Mar 2021 16:02:02 +0000 (17:02 +0100)
Now that this code is faster, we're seeing many spurious failures.

ext/date/tests/bug73837.phpt

index c11aa2c56bfa7959a681a1fb914806e7ef695524..e9deaff51fb9f1be6c1697dcd6849d14a8377912 100644 (file)
@@ -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)