Skip to content

Commit

Permalink
Merge pull request #41 from clue-labs/unhandled-rejections
Browse files Browse the repository at this point in the history
Update test suite to avoid unhandled promise rejections
  • Loading branch information
SimonFrings committed Jul 10, 2023
2 parents de886e8 + 68da1f6 commit 55f6c80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/QueueAllTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 55f6c80

Please sign in to comment.