File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
integration-tests/src/test/java/com/datastax/oss/driver/core Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2929import com .datastax .oss .simulacron .server .BoundCluster ;
3030import com .datastax .oss .simulacron .server .Server ;
3131import java .util .concurrent .ExecutionException ;
32+ import org .junit .After ;
3233import org .junit .AfterClass ;
3334import org .junit .BeforeClass ;
3435import org .junit .Test ;
@@ -38,6 +39,7 @@ public class PeersV2NodeRefreshIT {
3839
3940 private static Server peersV2Server ;
4041 private static BoundCluster cluster ;
42+ private static CqlSession session ;
4143
4244 @ BeforeClass
4345 public static void setup () {
@@ -55,6 +57,13 @@ public static void tearDown() {
5557 }
5658 }
5759
60+ @ After
61+ public void closeSession () {
62+ if (session != null ) {
63+ session .close ();
64+ }
65+ }
66+
5867 @ Test
5968 public void should_successfully_send_peers_v2_node_refresh_query ()
6069 throws InterruptedException , ExecutionException {
You can’t perform that action at this time.
0 commit comments