Skip to content

Commit

Permalink
Increase timeout in integration tests and sequential execution
Browse files Browse the repository at this point in the history
  • Loading branch information
lemois-1337 committed Aug 27, 2024
1 parent e34b69a commit 98b0730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:

- name: Test
shell: bash
env:
NO_PARALLEL: 1
run: ./build_and_test.sh

stability-test-fast:
Expand Down Expand Up @@ -74,7 +76,7 @@ jobs:
run: rm -r stability-tests

- name: Create coverage file
run: go test -timeout 120m -v -covermode=atomic -coverpkg=./... -coverprofile coverage.txt ./...
run: go test -timeout 120m -parallel=1 -v -covermode=atomic -coverpkg=./... -coverprofile coverage.txt ./...

- name: Upload coverage file
run: bash <(curl -s https://codecov.io/bash)
4 changes: 2 additions & 2 deletions build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ go build -v -o karlsend .

# check if parallel tests are enabled.
[ -n "${NO_PARALLEL}" ] && {
go test -timeout 20m -parallel=1 -v ./...
go test -timeout 30m -parallel=1 -v ./...
} || {
go test -timeout 20m -v ./...
go test -timeout 30m -v ./...
}

0 comments on commit 98b0730

Please sign in to comment.