Skip to content

Commit 96e329a

Browse files
committed
Increase CI test timeout to 180s for container tests
Container tests like MongoDB need more time than the default 60s timeout. This increases the timeout to 180s for the entire test suite to ensure container tests have enough time to complete.
1 parent 4015bc3 commit 96e329a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
- name: build and test
2424
run: |
2525
go get -v
26-
go test -timeout=60s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
26+
# Increase timeout to 180s for container tests
27+
go test -timeout=180s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
2728
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" > $GITHUB_WORKSPACE/profile.cov
2829
go build -race
2930
env:

0 commit comments

Comments
 (0)