Skip to content

Commit

Permalink
fix: force go-test-unit to be non-parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed May 25, 2023
1 parent fdf31b6 commit 6c5b597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hooks/golang/go-test-unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ FILES=$(go list ./... | grep -v -e /vendor/ -e /node_modules/)
# We don't use build tags commonly enough, so we're just going to run all tests
# locally and let the tests use environment flags to run integration tests.
# go test -tags=unit -timeout 30s -short -v ${FILES}
go test -timeout 30s -short -v ${FILES}
# shellcheck disable=SC2086
go test -parallel 1 -timeout 30s -short -v ${FILES}

returncode=$?
if [ $returncode -ne 0 ]; then
Expand Down

0 comments on commit 6c5b597

Please sign in to comment.