[verified] Harden Etsy MCP validation and scheduled token refresh
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 38s
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 38s
This commit is contained in:
@@ -67,7 +67,24 @@ class SchedulerTest extends TestCase
|
||||
$this->assertNotNull($sync);
|
||||
$this->assertNotNull($tokenRefresh);
|
||||
$this->assertSame('*/15 * * * *', $sync->expression);
|
||||
$this->assertSame('*/45 * * * *', $tokenRefresh->expression);
|
||||
$this->assertSame('*/5 * * * *', $tokenRefresh->expression);
|
||||
}
|
||||
|
||||
public function test_etsy_stale_overlap_locks_expire_within_five_minutes(): void
|
||||
{
|
||||
$this->freezeTime();
|
||||
$events = collect(app(Schedule::class)->events())
|
||||
->filter(fn ($event): bool => str_contains((string) $event->command, 'etsy:'));
|
||||
|
||||
foreach ($events as $event) {
|
||||
$this->assertTrue($event->mutex->create($event));
|
||||
$this->assertTrue($event->mutex->exists($event));
|
||||
}
|
||||
$this->travel(6)->minutes();
|
||||
|
||||
foreach ($events as $event) {
|
||||
$this->assertFalse($event->mutex->exists($event));
|
||||
}
|
||||
}
|
||||
|
||||
public function test_changing_a_stored_frequency_changes_what_gets_scheduled(): void
|
||||
|
||||
Reference in New Issue
Block a user