Skip to content

Commit a185755

Browse files
mihailtclaude
andcommitted
test(startup): the module-recording helper closes its client through closeClient() (review)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 4a97414 commit a185755

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/helpers/server-modules.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { fileURLToPath, pathToFileURL } from 'url';
55
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
66
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
77
import { isTestHome } from './test-env.js';
8+
import { closeClient } from './close-client.js';
89

910
const PROJECT_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
1011
const SERVER = path.join(PROJECT_ROOT, 'dist/index.js');
@@ -101,7 +102,7 @@ export async function startServerRecordingModules() {
101102
};
102103

103104
const close = async () => {
104-
await client.close().catch(() => {});
105+
await closeClient(client);
105106
fs.rmSync(logFile, { force: true });
106107
};
107108

0 commit comments

Comments
 (0)