Skip to content

Commit 847aab4

Browse files
authored
Merge pull request #79 from dinooo13/closeTestConnections
Update tests to close any server sockets
2 parents d60ed07 + 6f06b3e commit 847aab4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/IntegrationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function testPingCtorWithExplicitUnixUrlSendsRequestToGivenUnixSocket()
3838
unlink($path);
3939

4040
$this->assertEquals('/_ping', $value);
41+
42+
$socket->close();
4143
}
4244

4345
public function testPingCtorWithExplicitHttpUrlSendsRequestToGivenHttpUrlWithBase()
@@ -58,5 +60,7 @@ public function testPingCtorWithExplicitHttpUrlSendsRequestToGivenHttpUrlWithBas
5860
$value = \Clue\React\Block\await($deferred->promise(), $loop, 1.0);
5961

6062
$this->assertEquals('/base/_ping', $value);
63+
64+
$socket->close();
6165
}
6266
}

0 commit comments

Comments
 (0)