Skip to content

Commit a1ae8d1

Browse files
committed
Fix optional test for ENETUNREACH error condition
1 parent f9bc429 commit a1ae8d1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/TcpConnectorTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,7 @@ public function connectionToInvalidNetworkShouldFailWithUnreachableError()
147147
'Connection to ' . $address . ' failed: ' . (function_exists('socket_strerror') ? socket_strerror($enetunreach) . ' (ENETUNREACH)' : 'Network is unreachable'),
148148
$enetunreach
149149
);
150-
151-
try {
152-
Block\await($promise, null, self::TIMEOUT);
153-
} catch (\Exception $e) {
154-
fclose($client);
155-
156-
throw $e;
157-
}
150+
Block\await($promise, null, self::TIMEOUT);
158151
}
159152

160153
/** @test */

0 commit comments

Comments
 (0)