mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-29 19:54:49 +00:00
Increase connection timeout to avoid assertion failing as "couldn't connect to host"
This commit is contained in:
@@ -285,7 +285,7 @@ class CurlTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
public function testError() {
|
||||
$test = new Test();
|
||||
$test->curl->setOpt(CURLOPT_CONNECTTIMEOUT_MS, 2000);
|
||||
$test->curl->setOpt(CURLOPT_CONNECTTIMEOUT_MS, 4000);
|
||||
$test->curl->get(Test::ERROR_URL);
|
||||
$this->assertTrue($test->curl->error);
|
||||
$this->assertTrue($test->curl->curl_error);
|
||||
|
||||
Reference in New Issue
Block a user