Skip to content

Commit

Permalink
Added skip for TestStmtCacheUsesOverriddenKeyspace and TestRoutingKey…
Browse files Browse the repository at this point in the history
…CacheUsesOverriddenKeyspace integration tests when running on proto < 5 because they requires overridding keyspace feature that is available for proto 5 and higher
  • Loading branch information
worryg0d committed Oct 31, 2024
1 parent 0298a00 commit a1a613c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cassandra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3611,6 +3611,10 @@ func TestStmtCacheUsesOverriddenKeyspace(t *testing.T) {
session := createSession(t)
defer session.Close()

if session.cfg.ProtoVersion < protoVersion5 {
t.Skip("This tests only runs on proto > 4 due SetKeyspace availability")
}

const createKeyspaceStmt = `CREATE KEYSPACE IF NOT EXISTS %s
WITH replication = {
'class' : 'SimpleStrategy',
Expand Down Expand Up @@ -3668,6 +3672,10 @@ func TestRoutingKeyCacheUsesOverriddenKeyspace(t *testing.T) {
session := createSession(t)
defer session.Close()

if session.cfg.ProtoVersion < protoVersion5 {
t.Skip("This tests only runs on proto > 4 due SetKeyspace availability")
}

const createKeyspaceStmt = `CREATE KEYSPACE IF NOT EXISTS %s
WITH replication = {
'class' : 'SimpleStrategy',
Expand Down

0 comments on commit a1a613c

Please sign in to comment.