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);