diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index a77e5dd584..320231212d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -35,6 +35,8 @@ jobs: - name: Test shell: bash + env: + NO_PARALLEL: 1 run: ./build_and_test.sh stability-test-fast: @@ -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) diff --git a/build_and_test.sh b/build_and_test.sh index 7d59a4c91a..6a3dd6b793 100755 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -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 ./... }