summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2021-02-10 15:31:13 +0700
committerShulhan <m.shulhan@gmail.com>2021-02-10 15:31:13 +0700
commit558bdae00a3906e247d7d2c2e36c13a71d6c8d45 (patch)
tree740bd4fdf50fd15d96b762cba7d07314a6ce2a44
parentf39924895794ca680bc904c5a980de39e23fa66e (diff)
downloadpakakeh.go-558bdae00a3906e247d7d2c2e36c13a71d6c8d45.tar.xz
Makefile: run the test coverage using one CPU
This is to make the test result stable on flaky unit test that require waiting for server to run on TestMain before executing the test functions.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a0f904c8..bdc6afad 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ $(COVER_HTML): $(COVER_OUT)
$(COVER_OUT): $(SRC) $(SRC_TEST)
export GORACE=history_size=7 && \
export CGO_ENABLED=1 && \
- go test -race -count=1 -coverprofile=$@ ./...
+ go test -race -count=1 -p=1 -coverprofile=$@ ./...
coverbrowse: $(COVER_HTML)
xdg-open $<