Skip to content

Commit

Permalink
Explicitely set the number of CPU cores to use
Browse files Browse the repository at this point in the history
  • Loading branch information
Madrigal committed Nov 12, 2024
1 parent f348236 commit 808dd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ unit-race-modules-%:
experimental-module:
go list -f "{{.Dir}}/..." -m | xargs go vet ${BUILD_TAGS} --all && \
go list -f "{{.Dir}}/..." -m | xargs go test ${BUILD_TAGS} ${RUN_NONE} && \
go list -f "{{.Dir}}/..." -m | xargs go test -timeout=2m ${UNIT_TEST_TAGS} -race
go list -f "{{.Dir}}/..." -m | xargs go test -timeout=2m ${UNIT_TEST_TAGS} -race -cpu=4

# same as regular but no race test
experimental-module-no-race:
go list -f "{{.Dir}}/..." -m | xargs go vet ${BUILD_TAGS} --all && \
go list -f "{{.Dir}}/..." -m | xargs go test ${BUILD_TAGS} ${RUN_NONE} && \
go list -f "{{.Dir}}/..." -m | xargs go test -timeout=2m ${UNIT_TEST_TAGS}
go list -f "{{.Dir}}/..." -m | xargs go test -timeout=2m ${UNIT_TEST_TAGS} -cpu=4


unit-modules-%:
Expand Down

0 comments on commit 808dd34

Please sign in to comment.