Explorar o código

Only skip ring discovery for protocol version 1

Ben Hood %!s(int64=11) %!d(string=hai) anos
pai
achega
ff5db7dcae
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      cassandra_test.go

+ 3 - 1
cassandra_test.go

@@ -115,7 +115,9 @@ func createSession(tb testing.TB) *Session {
 //TestRingDiscovery makes sure that you can autodiscover other cluster members when you seed a cluster config with just one node
 func TestRingDiscovery(t *testing.T) {
 
-	t.Skip("Skipping TestRingDiscovery for now because it seems to involve itself in lots of test timeouts on Travis")
+	if *flagProto == 1 {
+		t.Skip("Skipping TestRingDiscovery (protocol 1 only) for now because it seems to involve itself in lots of test timeouts on Travis")
+	}
 
 	cluster := NewCluster(clusterHosts[0])
 	cluster.ProtoVersion = *flagProto