瀏覽代碼

Does increasing the discovery frequency help?

Ben Hood 11 年之前
父節點
當前提交
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)