test: do not reach for Redis from the provisioning queue
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
parent
819872bb79
commit
a6d7594e5c
|
|
@ -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']]);
|
||||
}
|
||||
//
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue