Pārlūkot izejas kodu

Only skip ring discovery for protocol version 1

Ben Hood 11 gadi atpakaļ
vecāks
revīzija
ff5db7dcae
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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