Skip to content

Commit 624ef62

Browse files
authored
Merge pull request #76 from clue-labs/ipv6
Skip IPv6 tests if not supported by the system
2 parents 6c5560b + 867a137 commit 624ef62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/TcpConnectorTest.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ public function connectionToIp6TcpServerShouldSucceed()
6565
$server = new Server($loop);
6666
$server->on('connection', $this->expectCallableOnce());
6767
$server->on('connection', array($server, 'shutdown'));
68-
$server->listen(9999, '::1');
68+
69+
try {
70+
$server->listen(9999, '::1');
71+
} catch (\Exception $e) {
72+
$this->markTestSkipped('Unable to start IPv6 server socket (IPv6 not supported on this system?)');
73+
}
6974

7075
$connector = new TcpConnector($loop);
7176

0 commit comments

Comments
 (0)