aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_functional_test_case.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index cd3133f3a0..b622c6e284 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -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