소스 검색

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)