Skip to content

Commit fa2377a

Browse files
authored
Set required connect_timeout option in test (#82)
1 parent d66ae02 commit fa2377a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/Impl/Integrations/CurlEventPublisherTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ public function setUp(): void
2323
public function testSendsCorrectBodyAndHeaders()
2424
{
2525
$event = json_encode(["key" => "user-key"]);
26-
$publisher = new Integrations\CurlEventPublisher('sdk-key', ['events_uri' => 'http://localhost:8080']);
26+
$publisher = new Integrations\CurlEventPublisher(
27+
'sdk-key',
28+
[
29+
'events_uri' => 'http://localhost:8080',
30+
'connect_timeout' => 3,
31+
]
32+
);
2733
$publisher->publish($event);
2834

2935
$requests = [];

0 commit comments

Comments
 (0)