From 6429af9ca7577c6b2c9bbdb98f3a4e8334ac29fc Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Mon, 7 Aug 2023 21:20:36 +0530 Subject: [PATCH] chore: disable -race by default and create a new make target --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f1ae11d..0b764dcb 100644 --- a/Makefile +++ b/Makefile @@ -72,8 +72,11 @@ lint: @echo "lint" @golangci-lint --exclude=SA1019 run ./... --deadline=5m +test-with-race: + ${GOBIN} test -race -timeout 300s ./waku/... + test: - ${GOBIN} test -race -timeout 300s ./waku/... -coverprofile=${GO_TEST_OUTFILE}.tmp + ${GOBIN} test -timeout 300s ./waku/... -coverprofile=${GO_TEST_OUTFILE}.tmp cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE} ${GOBIN} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV} @@ -187,3 +190,5 @@ test-onchain: BUILD_TAGS += include_onchain_tests test-onchain: ${GOBIN} test -v -count 1 -tags="${BUILD_TAGS}" github.com/waku-org/go-waku/waku/v2/protocol/rln +test-onchain-with-race: + ${GOBIN} test -race -v -count 1 -tags="${BUILD_TAGS}" github.com/waku-org/go-waku/waku/v2/protocol/rln \ No newline at end of file