test: do not reach for Redis from the provisioning queue
tests / pest (push) Successful in 7m4s Details
tests / assets (push) Successful in 20s Details
tests / release (push) Has been skipped Details

Jobs that pin themselves to the provisioning connection bypass
QUEUE_CONNECTION, so two tests opened a Redis connection — fine on a machine
running the stack, a RedisException in CI. A test run must not depend on
infrastructure being up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat/portal-design
nexxo 2026-07-26 02:20:46 +02:00
parent 819872bb79
commit a6d7594e5c
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ abstract class TestCase extends BaseTestCase
// The suite must not depend on a built manifest.
$this->withoutVite();
// Jobs that pin themselves to the provisioning connection bypass
// QUEUE_CONNECTION, so the suite would reach for Redis — infrastructure
// a test run must not depend on.
config(['queue.connections.provisioning' => ['driver' => 'sync']]);
}
//
}