Skip to content

Commit c3b98bd

Browse files
committed
Fix test
1 parent 281a077 commit c3b98bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/TaskHandlerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,14 +466,14 @@ public function attempts_are_copied_from_x_header()
466466
{
467467
// Arrange
468468
OpenIdVerificator::fake();
469-
Event::fake([JobProcessing::class]);
469+
Event::fake($this->getJobReleasedAfterExceptionEvent());
470470

471471
// Act & Assert
472-
$job = $this->dispatch(new SimpleJob());
472+
$job = $this->dispatch(new FailingJob());
473473
request()->headers->set('X-CloudTasks-TaskRetryCount', 6);
474474
$job->run();
475475

476-
Event::assertDispatched(JobProcessing::class, function (JobProcessing $event) {
476+
Event::assertDispatched($this->getJobReleasedAfterExceptionEvent(), function ($event) {
477477
return $event->job->attempts() === 7;
478478
});
479479
}

0 commit comments

Comments
 (0)