Skip to content

Commit cab8a8f

Browse files
committed
increase timeout may help?
1 parent 0f28880 commit cab8a8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Acceptance/PubNubContext.php

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public function before(BeforeScenarioScope $scope): void
1212
{
1313
$ch = curl_init();
1414
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
15+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
16+
1517
foreach ($scope->getScenario()->getTags() as $tag) {
1618
if (0 === strpos($tag, 'contract')) {
1719
list(, $contractName) = explode('=', $tag);
@@ -27,6 +29,8 @@ public function after(AfterScenarioScope $scope): void
2729
{
2830
$ch = curl_init();
2931
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
32+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
33+
3034
foreach ($scope->getScenario()->getTags() as $tag) {
3135
if (0 === strpos($tag, 'contract')) {
3236
curl_setopt($ch, CURLOPT_URL, 'http://localhost:8090/expect');

0 commit comments

Comments
 (0)