浏览代码

Remove the authenticator, increase timeout, add retry policy as ccm seems flaky

Chris Bannister 11 年之前
父节点
当前提交
7954fccb3c
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      cassandra_test.go

+ 2 - 5
cassandra_test.go

@@ -41,12 +41,9 @@ func createSession(tb testing.TB) *Session {
 	cluster := NewCluster(clusterHosts...)
 	cluster.ProtoVersion = *flagProto
 	cluster.CQLVersion = *flagCQL
-	cluster.Authenticator = PasswordAuthenticator{
-		Username: "cassandra",
-		Password: "cassandra",
-	}
-	cluster.Timeout = 2 * time.Second
+	cluster.Timeout = 5 * time.Second
 	cluster.Consistency = Quorum
+	cluster.RetryPolicy.NumRetries = 2
 
 	initOnce.Do(func() {
 		session, err := cluster.CreateSession()