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); });