diff --git a/tests/Feature/CleanupRedisTest.php b/tests/Feature/CleanupRedisTest.php index e0fa84ec5..c2cfd8e98 100644 --- a/tests/Feature/CleanupRedisTest.php +++ b/tests/Feature/CleanupRedisTest.php @@ -64,7 +64,11 @@ // Mock command() for hgetall to get job data $redisMock->shouldReceive('command') ->with('hgetall', Mockery::any()) - ->andReturn(['status' => 'pending', 'payload' => '{}']); + ->andReturn([ + 'status' => 'processing', + 'reserved_at' => time() - 60, // Started 1 minute ago + 'payload' => json_encode(['displayName' => 'TestJob']), + ]); Redis::shouldReceive('connection') ->with('horizon')