Skip to content

Commit

Permalink
Fix optional test for ENETUNREACH error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Mar 22, 2022
1 parent f9bc429 commit a1ae8d1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/TcpConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a1ae8d1

Please sign in to comment.