Skip to content

Commit

Permalink
Replace all with await
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jul 12, 2022
1 parent d5dfa8e commit 670358f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AsyncTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Revolt\EventLoop;
use Revolt\EventLoop\Driver\TracingDriver;
use function Amp\async;
use function Amp\Future\all;
use function Amp\now;

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

try {
[, $returnValue] = all([
[, $returnValue] = Future\await([
$this->deferredFuture->getFuture(),
async(function () use ($args): mixed {
try {
Expand Down

0 comments on commit 670358f

Please sign in to comment.