From 867a137cda829ced85cba2cb5f632098978724cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Fri, 23 Dec 2016 14:29:06 +0100 Subject: [PATCH] Skip IPv6 tests if not supported by the system --- tests/TcpConnectorTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TcpConnectorTest.php b/tests/TcpConnectorTest.php index 964297d..f23479c 100644 --- a/tests/TcpConnectorTest.php +++ b/tests/TcpConnectorTest.php @@ -65,7 +65,12 @@ public function connectionToIp6TcpServerShouldSucceed() $server = new Server($loop); $server->on('connection', $this->expectCallableOnce()); $server->on('connection', array($server, 'shutdown')); - $server->listen(9999, '::1'); + + try { + $server->listen(9999, '::1'); + } catch (\Exception $e) { + $this->markTestSkipped('Unable to start IPv6 server socket (IPv6 not supported on this system?)'); + } $connector = new TcpConnector($loop);