mirror of
https://github.com/php/php-src.git
synced 2026-03-28 10:12:18 +01:00
Reduce sleep intervals in basic sleep tests
No reason to wait this long...
This commit is contained in:
@@ -13,7 +13,7 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
||||
|
||||
echo "*** Testing sleep() : basic functionality ***\n";
|
||||
|
||||
$sleeptime = 5; // sleep for 5 seconds
|
||||
$sleeptime = 1; // sleep for 1 seconds
|
||||
|
||||
set_time_limit(20);
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ set_time_limit(20);
|
||||
|
||||
echo "*** Testing usleep() : basic functionality ***\n";
|
||||
|
||||
$sleeptime = 5000000; // == 5 seconds
|
||||
$sleeptime = 1000000; // == 1 seconds
|
||||
// Test passes if sleeps for at least 98% of specified time
|
||||
$sleeplow = $sleeptime - ($sleeptime * 2 /100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user