Skip to content

Commit 670358f

Browse files
committed
Replace all with await
1 parent d5dfa8e commit 670358f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AsyncTestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Revolt\EventLoop;
1010
use Revolt\EventLoop\Driver\TracingDriver;
1111
use function Amp\async;
12-
use function Amp\Future\all;
1312
use function Amp\now;
1413

1514
abstract class AsyncTestCase extends PHPUnitTestCase
@@ -67,7 +66,7 @@ final protected function runAsyncTest(mixed ...$args): mixed
6766
$start = now();
6867

6968
try {
70-
[, $returnValue] = all([
69+
[, $returnValue] = Future\await([
7170
$this->deferredFuture->getFuture(),
7271
async(function () use ($args): mixed {
7372
try {

0 commit comments

Comments
 (0)