mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 19:21:36 +00:00
fix(CleanupRedisTest): update mock return values for hgetall to reflect job processing state
This commit is contained in:
@@ -64,7 +64,11 @@ it('successfully scans Redis keys when scan returns valid results', function ()
|
||||
// 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')
|
||||
|
||||
Reference in New Issue
Block a user