Skip to content

Commit a009b7c

Browse files
authored
fix(docs): close the Redis client so the docs provider e2e exits (#10280)
1 parent 68f8aba commit a009b7c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/sim/scripts/test-docs-search-provider-e2e.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ try {
288288
'@/lib/mothership/docs/corpus'
289289
)
290290
const { db } = await import('@sim/db')
291-
closePlatform = () => db.$client.end({ timeout: 1 })
291+
const { closeRedisConnection } = await import('@/lib/core/config/redis')
292+
closePlatform = async () => {
293+
await db.$client.end({ timeout: 1 })
294+
await closeRedisConnection()
295+
}
292296
let hit: { path: string; url: string; content: string }
293297
if (live) {
294298
const result = await searchDocs(

0 commit comments

Comments
 (0)