1
0
mirror of https://github.com/danog/dns.git synced 2024-11-26 12:04:40 +01:00

Accept different exception message for dead sockets

This commit is contained in:
Niklas Keller 2018-05-01 20:08:54 +02:00
parent d8d497458a
commit 4647e5f582

View File

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