Commit f92c91ca authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by GitHub

raise timeout in integration tests for curl adapter (#576)

The default timeout of solarium of 5s seems to be too aggressive on travis and causes random test failures. Set it to the PHP default of 13s.
parent ce2ac95a
...@@ -9,4 +9,11 @@ use Solarium\Tests\Integration\AbstractTechproductsTest; ...@@ -9,4 +9,11 @@ use Solarium\Tests\Integration\AbstractTechproductsTest;
*/ */
class TechproductsCurlTest extends AbstractTechproductsTest class TechproductsCurlTest extends AbstractTechproductsTest
{ {
public function setUp()
{
parent::setUp();
// The default timeout of solarium of 5s seems to be too aggressive on travis and causes random test failures.
// Set it to the PHP default of 13s.
$this->client->getEndpoint()->setTimeout(CURLOPT_TIMEOUT);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment