Commit 681fe7f
authored
test: ensure proper resource cleanup in integration tests (#537)
- Add try-finally blocks to guarantee server cleanup on test completion
- Call closeGracefully().block() to ensure synchronous shutdown
- Use try-with-resources for client lifecycle management where applicable
- Prevent resource leaks and potential test flakiness
Signed-off-by: Christian Tzolov <[email protected]>1 parent 2314238 commit 681fe7f
File tree
4 files changed
+317
-238
lines changed- mcp-test/src/main/java/io/modelcontextprotocol
- mcp/src/test/java/io/modelcontextprotocol/server
4 files changed
+317
-238
lines changed
0 commit comments