Explorar o código

Does increasing the discovery frequency help?

Ben Hood %!s(int64=11) %!d(string=hai) anos
pai
achega
121ca67123
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)