mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/11568] Set client manually so we can increase the cURL timeout
PHPBB3-11568
This commit is contained in:
parent
5dcf028cf0
commit
a3e5efc634
@ -158,6 +158,13 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
|
||||
$cookieJar = new CookieJar;
|
||||
self::$static_client = new Goutte\Client(array(), null, $cookieJar);
|
||||
// Set client manually so we can increase the cURL timeout
|
||||
self::$static_client->setClient(new Guzzle\Http\Client('', array(
|
||||
Guzzle\Http\Client::DISABLE_REDIRECTS => true,
|
||||
'curl.options' => array(
|
||||
CURLOPT_TIMEOUT => 120
|
||||
),
|
||||
)));
|
||||
|
||||
// Reset the curl handle because it is 0 at this point and not a valid
|
||||
// resource
|
||||
|
Loading…
x
Reference in New Issue
Block a user