From 585a2b107d4f8c42e1303482793bce55308238c3 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 6 Oct 2025 14:32:56 +0200 Subject: [PATCH] run tests with -race --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3e3e55cee21..ff9eab2e538 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ PLUGINS ?= $(patsubst ./cmd/notification-%,%,$(wildcard ./cmd/notification-*)) #-------------------------------------- GO = go -GOTEST = $(GO) test +GOTEST = $(GO) test -race BUILD_CODENAME ?= alphaga @@ -340,12 +340,12 @@ endif .PHONY: test test: check_gotestsum testenv ## Run unit tests # The quotes in the next command are required for PowerShell - gotestsum --format $(GOTESTSUM_FORMAT) --format-hide-empty-pkg -- "-tags=$(GO_TAGS)" ./... + gotestsum --format $(GOTESTSUM_FORMAT) --format-hide-empty-pkg -- -race "-tags=$(GO_TAGS)" ./... .PHONY: testcover testcover: check_gotestsum testenv ## Run unit tests with coverage report # The quotes in the next command are required for PowerShell - gotestsum --format $(GOTESTSUM_FORMAT) --format-hide-empty-pkg -- -covermode=atomic "-coverprofile=coverage.out" -coverpkg=./... "-tags=$(GO_TAGS)" ./... + gotestsum --format $(GOTESTSUM_FORMAT) --format-hide-empty-pkg -- -race -covermode=atomic "-coverprofile=coverage.out" -coverpkg=./... "-tags=$(GO_TAGS)" ./... .PHONY: check_golangci-lint check_golangci-lint: