Jelajahi Sumber

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

Chris Bannister 11 tahun lalu
induk
melakukan
7954fccb3c
1 mengubah file dengan 2 tambahan dan 5 penghapusan
  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()