An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(CleanupRedisTest): update mock return values for hgetall to reflect job processing state
Andras Bacsai4055c1790bc9
diff --git a/tests/Feature/CleanupRedisTest.php b/tests/Feature/CleanupRedisTest.phpindex e0fa84ec5a..c2cfd8e98c 100644--- a/tests/Feature/CleanupRedisTest.php+++ b/tests/Feature/CleanupRedisTest.php@@ -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')