Procházet zdrojové kódy

Use first provided host

Ben Hood před 11 roky
rodič
revize
00b2f70dee
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      cassandra_test.go

+ 1 - 1
cassandra_test.go

@@ -99,7 +99,7 @@ func createSession(tb testing.TB) *Session {
 }
 
 func TestRingDiscovery(t *testing.T) {
-	cluster := NewCluster("127.0.0.1")
+	cluster := NewCluster(clusterHosts[0])
 	cluster.DiscoverHosts = true
 	session, err := cluster.CreateSession()
 	if err != nil {