Browse Source

Ensure timeout tests wait for the entire specified duration

pull/1545/merge
Steven Hilder 11 years ago
committed by Anatol Belski
parent
commit
24bb5698af
  1. 4
      tests/basic/timeout_config.inc

4
tests/basic/timeout_config.inc

@ -4,8 +4,8 @@ $t = 3;
function busy_wait($how_long)
{
$until = time() + $how_long;
$until = microtime(TRUE) + $how_long;
while ($until > time());
while ($until > microtime(TRUE));
}
Loading…
Cancel
Save