mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Correctly reset a schedule if there is an exception during the run stage; closes #2550
This commit is contained in:
@@ -44,7 +44,8 @@ class ExecuteScheduleTest extends ClientApiIntegrationTestCase
|
||||
$this->actingAs($user)->postJson($this->link($schedule, '/execute'))->assertStatus(Response::HTTP_ACCEPTED);
|
||||
|
||||
Bus::assertDispatched(function (RunTaskJob $job) use ($task) {
|
||||
$this->assertSame($task->time_offset, $job->delay);
|
||||
// A task executed right now should not have any job delay associated with it.
|
||||
$this->assertNull($job->delay);
|
||||
$this->assertSame($task->id, $job->task->id);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user