浏览代码

Only skip ring discovery for protocol version 1

Ben Hood 11 年之前
父节点
当前提交
ff5db7dcae
共有 1 个文件被更改,包括 3 次插入1 次删除
  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