diff --git a/test/Connection/Http2ConnectionTest.php b/test/Connection/Http2ConnectionTest.php index 88e0f60d..2d099b22 100644 --- a/test/Connection/Http2ConnectionTest.php +++ b/test/Connection/Http2ConnectionTest.php @@ -581,6 +581,10 @@ public function testServerGoAwayFrame(): void $this->expectException(SocketException::class); $this->expectExceptionMessage('Received GOAWAY frame'); - $response2 = $response2Future->await(); + try { + $response2 = $response2Future->await(); + } finally { + $this->connection->close(); + } } }