From f3facc175cde5cd5bc5f5e52fa21f1feb2907090 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Fri, 11 Jul 2025 13:53:49 +0200 Subject: [PATCH] always disconnect the session after a test run --- tests/integration/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/helpers.ts b/tests/integration/helpers.ts index e5da149f..8e0e306c 100644 --- a/tests/integration/helpers.ts +++ b/tests/integration/helpers.ts @@ -84,7 +84,7 @@ export function setupIntegrationTest(getUserConfig: () => UserConfig): Integrati }); afterEach(async () => { - if (mcpServer && !mcpServer.session.connectedAtlasCluster) { + if (mcpServer) { await mcpServer.session.disconnect(); } });