mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 14:14:52 +00:00
fix(CleanupRedisTest): update mock return values for hgetall to reflect job processing state
This commit is contained in:
1 parent
3d260d6c29
commit
4055c1790b
1 file changed
+5
-1
@@ -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