From 07cf8c298a3ea3e48b483dd7177afd92c2ca4c81 Mon Sep 17 00:00:00 2001 From: Patrick Bajao Date: Wed, 8 Nov 2023 13:07:54 +0800 Subject: [PATCH] chore: Do not set CGO_ENABLED when running tests --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index e3a14b89..61d36802 100644 --- a/Makefile +++ b/Makefile @@ -125,7 +125,6 @@ test: VISUAL= test: EDITOR= test: PAGER= test: export CI_PROJECT_PATH=$(shell git remote get-url origin) -test: export CGO_ENABLED=1 test: bin/gotestsum ## Run tests $(GOTEST) --jsonfile test-output.log --no-summary=skipped --junitfile ./coverage.xml --format ${TEST_FORMAT} -- -coverprofile=./coverage.txt -covermode=atomic $(filter-out -v,${GOARGS}) $(if ${TEST_PKGS},${TEST_PKGS},./...) @@ -135,7 +134,6 @@ test-race: VISUAL= test-race: EDITOR= test-race: PAGER= test-race: export CI_PROJECT_PATH=$(shell git remote get-url origin) -test-race: export CGO_ENABLED=1 test-race: bin/gotestsum ## Run tests with race detection $(GOTEST) -- -race ./...