]> granicus.if.org Git - php/commitdiff
Increase timeout in mysqli_reap_async_query test
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 20 Jan 2020 08:53:54 +0000 (09:53 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 20 Jan 2020 08:53:54 +0000 (09:53 +0100)
The 2000 here is 2ms, which is a bit optimistic for parallelized
testing.

ext/mysqli/tests/mysqli_reap_async_query.phpt

index b43b6b247830482bc3f0d4d14eeb1b612f4fca07..745323c0cef7b98623d952104a2c34a240a02766 100644 (file)
@@ -38,7 +38,7 @@ if (!$IS_MYSQLND)
 
        function poll_async($offset, $link, $links, $errors, $reject, $exp_ready, $use_oo_syntax) {
 
-               if ($exp_ready !== ($tmp = mysqli_poll($links, $errors, $reject, 0, 2000)))
+               if ($exp_ready !== ($tmp = mysqli_poll($links, $errors, $reject, 0, 50 * 1000)))
                        printf("[%03d + 1] There should be %d links ready to read from, %d ready\n",
                                $offset, $exp_ready, $tmp);