diff options
author | Steven Hilder <steven.hilder@sevenpercent.solutions> | 2015-09-13 10:06:23 +0000 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-09-29 13:04:05 +0200 |
commit | 24bb5698af003650492a2938b0ec0de0dca79758 (patch) | |
tree | 39cb305dfe37ec67cf2e74e47d86115687f7bd1e | |
parent | ca36b7bc1395b6daff56082d1c91229c3e77069a (diff) | |
download | php-git-24bb5698af003650492a2938b0ec0de0dca79758.tar.gz |
Ensure timeout tests wait for the entire specified duration
-rw-r--r-- | tests/basic/timeout_config.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basic/timeout_config.inc b/tests/basic/timeout_config.inc index 18a00b2c48..7182080939 100644 --- a/tests/basic/timeout_config.inc +++ b/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)); } |