mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11568] Set client manually so we can increase the cURL timeout
PHPBB3-11568
This commit is contained in:
parent
5dcf028cf0
commit
a3e5efc634
1 changed files with 7 additions and 0 deletions
|
@ -158,6 +158,13 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
|
|
||||||
$cookieJar = new CookieJar;
|
$cookieJar = new CookieJar;
|
||||||
self::$static_client = new Goutte\Client(array(), null, $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
|
// Reset the curl handle because it is 0 at this point and not a valid
|
||||||
// resource
|
// resource
|
||||||
|
|
Loading…
Add table
Reference in a new issue