Просмотр исходного кода

Does increasing the discovery frequency help?

Ben Hood 11 лет назад
Родитель
Сommit
121ca67123
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      cassandra_test.go

+ 1 - 0
cassandra_test.go

@@ -106,6 +106,7 @@ func TestRingDiscovery(t *testing.T) {
 
 	cluster := NewCluster(clusterHosts[0])
 	cluster.DiscoverHosts = true
+	cluster.Discovery = DiscoveryConfig{Sleep: 1 * time.Second}
 	session, err := cluster.CreateSession()
 	if err != nil {
 		t.Errorf("got error connecting to the cluster %v", err)