1
0
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:
Nikita Popov
2017-11-14 22:18:56 +01:00
parent 691a5a9c4c
commit 9d97afd2a7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);