Browse Source

create keyspace can timeout, give it more time

Chris Bannister 10 năm trước cách đây
mục cha
commit
222f129fb2
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      cassandra_test.go

+ 1 - 0
cassandra_test.go

@@ -89,6 +89,7 @@ func createCluster() *ClusterConfig {
 func createKeyspace(tb testing.TB, cluster *ClusterConfig, keyspace string) {
 	c := *cluster
 	c.Keyspace = "system"
+	c.Timeout = 20 * time.Second
 	session, err := c.CreateSession()
 	if err != nil {
 		tb.Fatal("createSession:", err)