Skip to content

Commit

Permalink
CBG-4444 create an env var override for bucket op timeout (#7259)
Browse files Browse the repository at this point in the history
* CBG-4444 create an env var override for bucket op timeout

* increase timeout for tests
  • Loading branch information
torcolvin authored Jan 15, 2025
1 parent 55a7973 commit a68b162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/main_test_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ func newTestCluster(ctx context.Context, server string, tbp *TestBucketPool) *tb
// getGocbClusterForTest makes cluster connection. Callers must close. Returns the cluster and the connection string used to connect.
func getGocbClusterForTest(ctx context.Context, server string) (*gocb.Cluster, string) {

testClusterTimeout := 10 * time.Second
spec := BucketSpec{
Server: server,
TLSSkipVerify: true,
BucketOpTimeout: &testClusterTimeout,
Server: server,
TLSSkipVerify: true,
// use longer timeout than DefaultBucketOpTimeout to avoid timeouts in test harness from using buckets after flush, which takes some time to reinitialize
BucketOpTimeout: Ptr(time.Duration(30) * time.Second),
}
connStr, err := spec.GetGoCBConnString()
if err != nil {
Expand Down

0 comments on commit a68b162

Please sign in to comment.