From b60e702bfd98c98b0e9852f591c4de629fc31794 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sat, 21 Nov 2026 00:50:22 -0800 Subject: [PATCH] fix(docs): close the Redis client so the docs provider e2e exits --- apps/sim/scripts/test-docs-search-provider-e2e.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/sim/scripts/test-docs-search-provider-e2e.ts b/apps/sim/scripts/test-docs-search-provider-e2e.ts index 58fcb8ab986..64634983d6d 100644 --- a/apps/sim/scripts/test-docs-search-provider-e2e.ts +++ b/apps/sim/scripts/test-docs-search-provider-e2e.ts @@ -288,7 +288,11 @@ try { '@/lib/mothership/docs/corpus' ) const { db } = await import('@sim/db') - closePlatform = () => db.$client.end({ timeout: 1 }) + const { closeRedisConnection } = await import('@/lib/core/config/redis') + closePlatform = async () => { + await db.$client.end({ timeout: 1 }) + await closeRedisConnection() + } let hit: { path: string; url: string; content: string } if (live) { const result = await searchDocs(