1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +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); yield new Delayed(3000);
$this->expectException(Dns\ResolutionException::class); $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); yield $socket->ask($question, 3000);
}); });