From 175f4f24ae9f8600556c1352429b1bb49f8616ba Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 17 Sep 2019 17:33:46 +0200 Subject: Increase timeout in test --- ext/standard/tests/http/bug76342.phpt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ext/standard') diff --git a/ext/standard/tests/http/bug76342.phpt b/ext/standard/tests/http/bug76342.phpt index 179127081f..ee943ca365 100644 --- a/ext/standard/tests/http/bug76342.phpt +++ b/ext/standard/tests/http/bug76342.phpt @@ -8,9 +8,10 @@ allow_url_fopen=1 [ - 'timeout' => '0.1', + 'timeout' => $timeout, ], ]; @@ -20,8 +21,9 @@ $pid = http_server_sleep('tcp://127.0.0.1:12342'); $start = microtime(true); file_get_contents('http://127.0.0.1:12342/', false, $ctx); -if (microtime(true) - $start >= 0.2) { - echo 'FAIL'; +$diff = microtime(true) - $start; +if ($diff >= 2 * $timeout) { + echo "FAIL: $diff\n"; } http_server_kill($pid); -- cgit v1.2.1