Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix session leak in PeersV2NodeRefreshIT test
PeersV2NodeRefreshIT#should_successfully_send_peers_v2_node_refresh_query integration test does not close its test session, leading to leaks when integration tests suite is executed in CI. This affects SessionLeakIT#should_warn_when_session_count_exceeds_threshold test, which sees the leaked session and fails due to an unexpected number of active sessions. The change wraps the test in try-with block so that the test session is autoclosed at the end, preventing it from affecting subsequent tests.
- Loading branch information