Skip to content

Commit a78bbb1

Browse files
committed
[3.x] Fix Ubuntu 24.04 issues
1 parent 967dac8 commit a78bbb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Query/TcpTransportExecutorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function testQueryRejectsWhenClientKeepsSendingWhenServerClosesSocketWith
374374
$exception = null;
375375
for ($i = 0; $i < 2000; ++$i) {
376376
$promise = $executor->query($query);
377-
$promise->then(null, function (\Exception $reason) use (&$exception) {
377+
$promise->then(null, function ($reason) use (&$exception) {
378378
$exception = $reason;
379379
});
380380
}
@@ -410,6 +410,7 @@ public function testQueryRejectsWhenClientKeepsSendingWhenServerClosesSocketWith
410410
'Unable to send query to DNS server tcp://' . $address . ' (',
411411
defined('SOCKET_EPIPE') ? (PHP_OS !== 'Darwin' || $writePending ? SOCKET_EPIPE : SOCKET_EPROTOTYPE) : null
412412
);
413+
var_export([$exception, (string)$exception]);
413414
throw $exception;
414415
}
415416

0 commit comments

Comments
 (0)