Skip to content

Commit

Permalink
Ensure timeout tests wait for the entire specified duration
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhilder authored and weltling committed Sep 29, 2015
1 parent ca36b7b commit 24bb569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/basic/timeout_config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit 24bb569

Please sign in to comment.