Skip to content

Commit

Permalink
Retry test
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Sep 23, 2022
1 parent 3f3a57a commit e0d8e3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Integration/Queue/ThrottlesExceptionsWithRedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public function testCircuitIsOpenedForJobErrors()
{
$this->assertJobWasReleasedImmediately(CircuitBreakerWithRedisTestJob::class, $key = Str::random());
$this->assertJobWasReleasedImmediately(CircuitBreakerWithRedisTestJob::class, $key);
$this->assertJobWasReleasedWithDelay(CircuitBreakerWithRedisTestJob::class, $key);

retry(2, function () use ($key) {
$this->assertJobWasReleasedWithDelay(CircuitBreakerWithRedisTestJob::class, $key);
});
}

public function testCircuitStaysClosedForSuccessfulJobs()
Expand Down

0 comments on commit e0d8e3d

Please sign in to comment.