Browse Source

Does increasing the discovery frequency help?

Ben Hood 11 years ago
parent
commit
121ca67123
1 changed files with 1 additions and 0 deletions
  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)