chore: refactor tests for real

This commit is contained in:
Pavel Feldman
2025-03-27 16:50:43 -07:00
parent b477b7c26f
commit 3b0e4c3b27
3 changed files with 223 additions and 273 deletions

View File

@@ -79,8 +79,10 @@ export function createServerWithTools(options: Options): Server {
return { contents };
});
const oldClose = server.close.bind(server);
server.close = async () => {
await server.close();
await oldClose();
await context.close();
};