فهرست منبع

Disable autodiscovery tests for Cassandra 1.2.x

Ben Hood 11 سال پیش
والد
کامیت
2e604e40e9
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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()