Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions tests/TaskHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Tests;

use Illuminate\Console\Application as ConsoleApplication;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\Facades\Event;
use PHPUnit\Framework\Attributes\Test;
use Stackkit\LaravelGoogleCloudScheduler\OpenIdVerificator;
Expand Down Expand Up @@ -62,9 +62,7 @@ public function it_prevents_overlapping_if_the_command_is_scheduled_without_over
$this->assertLoggedLines(1);
$this->assertLogged('TestCommand');

$expression = '* * * * *';
$command = ConsoleApplication::formatCommandString('test:command');
$mutex = 'framework'.DIRECTORY_SEPARATOR.'schedule-'.sha1($expression.$command);
$mutex = head(app(Schedule::class)->events())->mutexName();

cache()->add($mutex, true, 60);

Expand Down
Loading