From 9485d7d7c79738f73bad9bbe1eca4ea016f52d3c Mon Sep 17 00:00:00 2001 From: Denis Vaksman Date: Thu, 10 Aug 2023 18:08:29 +0300 Subject: [PATCH] fix curl resumable test --- tests/python/tests/curl/php/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python/tests/curl/php/index.php b/tests/python/tests/curl/php/index.php index e1dcb49f77..729dd20ec5 100644 --- a/tests/python/tests/curl/php/index.php +++ b/tests/python/tests/curl/php/index.php @@ -78,7 +78,7 @@ function test_curl($curl_resumable = false) { ob_start(); fwrite(STDERR, "start_curl_query\n"); - $output = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s) : curl_exec($ch); + $output = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s ?? -1) : curl_exec($ch); fwrite(STDERR, "end_curl_query\n"); curl_close($ch); @@ -101,7 +101,7 @@ function test_curl_reuse_handle($curl_resumable = false) { if (!$curl_resumable) { curl_setopt($ch, CURLOPT_TIMEOUT_MS, $timeout_s * 1000); } - $output1 = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s) : curl_exec($ch); + $output1 = $curl_resumable ? curl_exec_concurrently($ch, $timeout_s ?? -1) : curl_exec($ch); if (!$curl_resumable) { curl_setopt($ch, CURLOPT_TIMEOUT_MS, 0); }