Skip to content

Commit a1a613c

Browse files
committed
Added skip for TestStmtCacheUsesOverriddenKeyspace and TestRoutingKeyCacheUsesOverriddenKeyspace integration tests when running on proto < 5 because they requires overridding keyspace feature that is available for proto 5 and higher
1 parent 0298a00 commit a1a613c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cassandra_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3611,6 +3611,10 @@ func TestStmtCacheUsesOverriddenKeyspace(t *testing.T) {
36113611
session := createSession(t)
36123612
defer session.Close()
36133613

3614+
if session.cfg.ProtoVersion < protoVersion5 {
3615+
t.Skip("This tests only runs on proto > 4 due SetKeyspace availability")
3616+
}
3617+
36143618
const createKeyspaceStmt = `CREATE KEYSPACE IF NOT EXISTS %s
36153619
WITH replication = {
36163620
'class' : 'SimpleStrategy',
@@ -3668,6 +3672,10 @@ func TestRoutingKeyCacheUsesOverriddenKeyspace(t *testing.T) {
36683672
session := createSession(t)
36693673
defer session.Close()
36703674

3675+
if session.cfg.ProtoVersion < protoVersion5 {
3676+
t.Skip("This tests only runs on proto > 4 due SetKeyspace availability")
3677+
}
3678+
36713679
const createKeyspaceStmt = `CREATE KEYSPACE IF NOT EXISTS %s
36723680
WITH replication = {
36733681
'class' : 'SimpleStrategy',

0 commit comments

Comments
 (0)