diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24a8aaa61ce..a80b381c5c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: cache: true - env: CGO_ENABLED: "0" - run: go test -v ./... + run: go test -v -race ./... system-test: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 30e5d691ff4..5361e650966 100644 --- a/Makefile +++ b/Makefile @@ -78,11 +78,11 @@ apm-server-oss: .PHONY: test test: - @go test $(GOMODFLAG) $(GOTESTFLAGS) ./... + @go test $(GOMODFLAG) $(GOTESTFLAGS) -race ./... .PHONY: system-test system-test: - @(cd systemtest; go test $(GOMODFLAG) $(GOTESTFLAGS) -timeout=20m ./...) + @(cd systemtest; go test $(GOMODFLAG) $(GOTESTFLAGS) -race -timeout=20m ./...) .PHONY: clean: