From 68da1f626e1680d235bc1df29fc59f6996af5428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Thu, 6 Jul 2023 10:57:59 +0200 Subject: [PATCH] Update test suite to avoid unhandled promise rejections --- tests/QueueAllTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/QueueAllTest.php b/tests/QueueAllTest.php index 541ecc4..78df102 100644 --- a/tests/QueueAllTest.php +++ b/tests/QueueAllTest.php @@ -118,6 +118,8 @@ public function testQueuedOperationsWillStartAndCancelOneIfOneOperationRejects() return $promise; }); + $promise->then(null, $this->expectCallableOnce()); // avoid reporting unhandled rejection + $first->reject(new \RuntimeException()); $this->assertEquals(3, $started);