From 6f06b3ee28325c89a9e9db06d979a478119ba6ef Mon Sep 17 00:00:00 2001 From: Fabian Meyer Date: Wed, 12 Oct 2022 18:27:09 +0200 Subject: [PATCH] Close open connections in tests --- tests/IntegrationTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php index 55c0357..b1f7b69 100644 --- a/tests/IntegrationTest.php +++ b/tests/IntegrationTest.php @@ -38,6 +38,8 @@ public function testPingCtorWithExplicitUnixUrlSendsRequestToGivenUnixSocket() unlink($path); $this->assertEquals('/_ping', $value); + + $socket->close(); } public function testPingCtorWithExplicitHttpUrlSendsRequestToGivenHttpUrlWithBase() @@ -58,5 +60,7 @@ public function testPingCtorWithExplicitHttpUrlSendsRequestToGivenHttpUrlWithBas $value = \Clue\React\Block\await($deferred->promise(), $loop, 1.0); $this->assertEquals('/base/_ping', $value); + + $socket->close(); } }