From 558bdae00a3906e247d7d2c2e36c13a71d6c8d45 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 10 Feb 2021 15:31:13 +0700 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $< -- cgit v1.3