Browse Source

Disable autodiscovery tests for Cassandra 1.2.x

Ben Hood 11 năm trước cách đây
mục cha
commit
2e604e40e9
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      cassandra_test.go

+ 4 - 0
cassandra_test.go

@@ -100,6 +100,10 @@ func createSession(tb testing.TB) *Session {
 }
 
 func TestRingDiscovery(t *testing.T) {
+	if *flagProto == 1 {
+		t.Skip("ring autodiscovery not supported. Please use Cassandra >= 2.0")
+	}
+
 	cluster := NewCluster(clusterHosts[0])
 	cluster.DiscoverHosts = true
 	session, err := cluster.CreateSession()