We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2b046c + 5cc0541 commit 46deaf9Copy full SHA for 46deaf9
tests/TaskHandlerTest.php
@@ -64,13 +64,12 @@ public function it_prevents_overlapping_if_the_command_is_scheduled_without_over
64
65
$mutex = head(app(Schedule::class)->events())->mutexName();
66
67
- cache()->add($mutex, true, 60);
68
-
69
$this->call('POST', '/cloud-scheduler-job', content: 'php artisan test:command');
70
71
$this->assertLoggedLines(1);
72
73
- cache()->delete($mutex);
+ $event = head(app(Schedule::class)->events());
+ $event->mutex->forget($event);
74
75
76
0 commit comments