Explorar o código

Set the discover hosts flag when trying to discover hosts

Ben Hood %!s(int64=11) %!d(string=hai) anos
pai
achega
8303a1892a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      cassandra_test.go

+ 1 - 0
cassandra_test.go

@@ -88,6 +88,7 @@ func createSession(tb testing.TB) *Session {
 
 func TestRingDiscovery(t *testing.T) {
 	cluster := NewCluster("127.0.0.1")
+	cluster.DiscoverHosts = true
 	session, err := cluster.CreateSession()
 	if err != nil {
 		t.Errorf("got error connecting to the cluster %v", err)