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 29
29
import com .datastax .oss .simulacron .server .BoundCluster ;
30
30
import com .datastax .oss .simulacron .server .Server ;
31
31
import java .util .concurrent .ExecutionException ;
32
+ import org .junit .After ;
32
33
import org .junit .AfterClass ;
33
34
import org .junit .BeforeClass ;
34
35
import org .junit .Test ;
@@ -38,6 +39,7 @@ public class PeersV2NodeRefreshIT {
38
39
39
40
private static Server peersV2Server ;
40
41
private static BoundCluster cluster ;
42
+ private static CqlSession session ;
41
43
42
44
@ BeforeClass
43
45
public static void setup () {
@@ -55,6 +57,13 @@ public static void tearDown() {
55
57
}
56
58
}
57
59
60
+ @ After
61
+ public void closeSession () {
62
+ if (session != null ) {
63
+ session .close ();
64
+ }
65
+ }
66
+
58
67
@ Test
59
68
public void should_successfully_send_peers_v2_node_refresh_query ()
60
69
throws InterruptedException , ExecutionException {
You can’t perform that action at this time.
0 commit comments