Skip to content

Commit 3af6b7f

Browse files
committed
updating unit test make cmd to add -race flag (#7024)
* updating unit test make cmd to add -race flag Signed-off-by: Adam D. Cornett <[email protected]> * fixing race condition in external go, ensure cmd has finished Signed-off-by: Adam D. Cornett <[email protected]> --------- Signed-off-by: Adam D. Cornett <[email protected]>
1 parent cbea408 commit 3af6b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ test-docs: ## Test doc links
168168
.PHONY: test-unit
169169
TEST_PKGS = $(shell $(GO) list ./... | grep -v -E 'github.com/operator-framework/operator-sdk/test/')
170170
test-unit: ## Run unit tests
171-
$(GO) test -tags=$(GO_BUILD_TAGS) -coverprofile=coverage.out -covermode=count -short $(TEST_PKGS)
171+
CGO_ENABLED=1 $(GO) test -race -tags=$(GO_BUILD_TAGS) -coverprofile=coverage.out -covermode=atomic -short $(TEST_PKGS)
172172

173173
e2e_tests := test-e2e-go test-e2e-helm test-e2e-integration
174174
e2e_targets := test-e2e $(e2e_tests)

0 commit comments

Comments
 (0)