Explorar el Código

Disable autodiscovery tests for Cassandra 1.2.x

Ben Hood hace 11 años
padre
commit
2e604e40e9
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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()