From 4647e5f58263ffdeff7da5c269f517cb48cff84f Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Tue, 1 May 2018 20:08:54 +0200 Subject: [PATCH] Accept different exception message for dead sockets --- test/TcpSocketTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TcpSocketTest.php b/test/TcpSocketTest.php index 41c3583..d3777ec 100644 --- a/test/TcpSocketTest.php +++ b/test/TcpSocketTest.php @@ -44,7 +44,7 @@ class TcpSocketTest extends SocketTest { yield new Delayed(3000); $this->expectException(Dns\ResolutionException::class); - $this->expectExceptionMessage("Reading from the server failed"); + $this->expectExceptionMessageRegExp("(Sending the request failed|Reading from the server failed)"); yield $socket->ask($question, 3000); });