Skip to content

Commit 1ca5689

Browse files
authored
Add tablets tests for every statement possible (#510)
We need to test every possible statement for tablet flow, that makes sure: 1. That tablet into reported by server 2. Tablet information on Cluster is being updated 3. Statement is routed properly according to tablet info
1 parent 6029ef9 commit 1ca5689

File tree

2 files changed

+341
-60
lines changed

2 files changed

+341
-60
lines changed

Diff for: driver-core/src/test/java/com/datastax/driver/core/CCMTestsSupport.java

+6
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,12 @@ protected void initTestSession() throws Exception {
10431043
session = register(cluster.connect());
10441044
}
10451045

1046+
public Session newSession() {
1047+
if (ccmTestConfig.createCcm() && ccmTestConfig.createCluster() && ccmTestConfig.createSession())
1048+
return register(cluster.connect());
1049+
return null;
1050+
}
1051+
10461052
protected void initTestKeyspace() {
10471053
if (ccmTestConfig.createCcm()
10481054
&& ccmTestConfig.createCluster()

0 commit comments

Comments
 (0)