diff --git a/tests/TcpConnectorTest.php b/tests/TcpConnectorTest.php index 0a9da7ca..30f10538 100644 --- a/tests/TcpConnectorTest.php +++ b/tests/TcpConnectorTest.php @@ -147,14 +147,7 @@ public function connectionToInvalidNetworkShouldFailWithUnreachableError() 'Connection to ' . $address . ' failed: ' . (function_exists('socket_strerror') ? socket_strerror($enetunreach) . ' (ENETUNREACH)' : 'Network is unreachable'), $enetunreach ); - - try { - Block\await($promise, null, self::TIMEOUT); - } catch (\Exception $e) { - fclose($client); - - throw $e; - } + Block\await($promise, null, self::TIMEOUT); } /** @test */