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:
parent
d8d497458a
commit
4647e5f582
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user