fix(test-conformance): stop leaking the conformance server and hanging on stale ports (#2276)
This commit is contained in:
parent
542d5c9586
commit
0657c3bea9
1 changed files with 52 additions and 10 deletions
5
.changeset/fix-conformance-server-leak.md
Normal file
5
.changeset/fix-conformance-server-leak.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@modelcontextprotocol/test-conformance': patch
|
||||
---
|
||||
|
||||
Fix the server conformance script leaking the test server process: the cleanup trap killed the npx wrapper while the actual server kept listening on port 3000, making later runs silently test stale code or hang forever in the readiness loop. The script now spawns the server directly with `node --import tsx`, refuses to start while the port is taken, and bounds each readiness probe; both test servers report `EADDRINUSE` with an actionable message, and the plain `test:conformance:client` script works again (`--suite core`, required since conformance 0.2.0-alpha.1).
|
||||
Loading…
Reference in a new issue