Skip to content

Commit f92c91c

Browse files
author
Markus Kalkbrenner
authored
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.
1 parent ce2ac95 commit f92c91c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Integration/TechproductsAdapters/TechproductsCurlTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,11 @@
99
*/
1010
class TechproductsCurlTest extends AbstractTechproductsTest
1111
{
12+
public function setUp()
13+
{
14+
parent::setUp();
15+
// The default timeout of solarium of 5s seems to be too aggressive on travis and causes random test failures.
16+
// Set it to the PHP default of 13s.
17+
$this->client->getEndpoint()->setTimeout(CURLOPT_TIMEOUT);
18+
}
1219
}

0 commit comments

Comments
 (0)