From 639ffeec650ba12a43b85e4aad486cffef38b11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 11 Jan 2025 11:51:44 +0100 Subject: [PATCH] remove false positive regression test --- tests/QueueTest.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/QueueTest.php b/tests/QueueTest.php index af13cc69..2095cc84 100644 --- a/tests/QueueTest.php +++ b/tests/QueueTest.php @@ -225,24 +225,6 @@ test('the tenant used by the job doesnt change when the current tenant changes', expect(pest()->valuestore->get('tenant_id'))->toBe('The current tenant id is: ' . $tenant1->getTenantKey()); })->with('queue_bootstrappers'); -// todo0 false positive -- remove after reproducing original issue -test('tenant connections do not persist after tenant jobs get processed', function (string $bootstrapper) { - withQueueBootstrapper($bootstrapper); - withTenantDatabases(); - - $tenant = Tenant::create(); - - tenancy()->initialize($tenant); - - dispatch(new TestJob(pest()->valuestore)); - - tenancy()->end(); - - pest()->artisan('queue:work --once'); - - expect(collect(DB::select('SHOW FULL PROCESSLIST'))->pluck('db'))->not()->toContain($tenant->database()->getName()); -})->with('queue_bootstrappers'); - // Regression test for #1277 test('dispatching a job from a tenant run arrow function dispatches it immediately', function (string $bootstrapper) { withQueueBootstrapper($bootstrapper);