Skip to content

Commit d548784

Browse files
authored
fix: close mongo client between runs (#98)
1 parent 5c43a16 commit d548784

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/helpers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ export function setupIntegrationTest(): IntegrationTest {
8383
afterEach(async () => {
8484
await mcpServer?.session.close();
8585
config.connectionString = undefined;
86+
87+
await mongoClient?.close();
88+
mongoClient = undefined;
8689
});
8790

8891
beforeAll(async function () {

0 commit comments

Comments
 (0)