Skip to content

Commit dd1da44

Browse files
committed
increase timeout of PushServiceTest
1 parent b9a18b2 commit dd1da44

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/PushServiceTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ protected function setUp()
4949
CURLOPT_POST => true,
5050
CURLOPT_POSTFIELDS => array(),
5151
CURLOPT_RETURNTRANSFER => true,
52+
CURLOPT_TIMEOUT => 30,
5253
));
5354

5455
$resp = curl_exec($startApiCurl);
@@ -112,7 +113,8 @@ public function testBrowsers($browserId, $browserVersion, $options)
112113
CURLOPT_HTTPHEADER => array(
113114
"Content-Type: application/json",
114115
"Content-Length: " . strlen($dataString)
115-
)
116+
),
117+
CURLOPT_TIMEOUT => 30,
116118
));
117119

118120
$resp = curl_exec($getSubscriptionCurl);
@@ -148,7 +150,8 @@ public function testBrowsers($browserId, $browserVersion, $options)
148150
CURLOPT_HTTPHEADER => array(
149151
"Content-Type: application/json",
150152
"Content-Length: " . strlen($dataString)
151-
)
153+
),
154+
CURLOPT_TIMEOUT => 30,
152155
));
153156
$resp = curl_exec($getNotificationCurl);
154157

@@ -187,7 +190,8 @@ protected function tearDown()
187190
CURLOPT_HTTPHEADER => array(
188191
"Content-Type: application/json",
189192
"Content-Length: " . strlen($dataString)
190-
)
193+
),
194+
CURLOPT_TIMEOUT => 30,
191195
));
192196
$resp = curl_exec($curl);
193197
$parsedResp = json_decode($resp);

0 commit comments

Comments
 (0)