Skip to content

test: ensure proper resource cleanup in integration tests#537

Merged
tzolov merged 1 commit intomodelcontextprotocol:mainfrom
tzolov:improve-its-stability
Sep 4, 2025
Merged

test: ensure proper resource cleanup in integration tests#537
tzolov merged 1 commit intomodelcontextprotocol:mainfrom
tzolov:improve-its-stability

Conversation

@tzolov
Copy link
Contributor

@tzolov tzolov commented Sep 4, 2025

  • 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

- 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 <christian.tzolov@broadcom.com>
@tzolov tzolov merged commit 681fe7f into modelcontextprotocol:main Sep 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant