From a6d7594e5c7c7f342540ad08ac7677c42cdb1402 Mon Sep 17 00:00:00 2001 From: nexxo Date: Sun, 26 Jul 2026 02:20:46 +0200 Subject: [PATCH] test: do not reach for Redis from the provisioning queue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/TestCase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestCase.php b/tests/TestCase.php index f05ae66..47d344e 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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']]); } // }