浏览代码

Use first provided host

Ben Hood 11 年之前
父节点
当前提交
00b2f70dee
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {