Commit 597f0c8
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.1 parent d62b851 commit 597f0c8
File tree
1 file changed
+12
-11
lines changed- integration-tests/src/test/java/com/datastax/oss/driver/core
1 file changed
+12
-11
lines changedLines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments