diff --git a/cassandra_test.go b/cassandra_test.go index d0e919746..133e26167 100644 --- a/cassandra_test.go +++ b/cassandra_test.go @@ -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', @@ -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',