From 00f0447f8bbf5db2812603cdc45ace376606822a Mon Sep 17 00:00:00 2001 From: Irina Marchuk Date: Mon, 11 Sep 2023 15:54:23 +0100 Subject: [PATCH] ignore -race test flag for probabilistic_sampler tests --- Makefile | 2 +- .../probabilistic_sampler/probabilistic_sampler_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bc568f81e332..c7db1af1d68b 100644 --- a/Makefile +++ b/Makefile @@ -172,7 +172,7 @@ lint: agentlint # more without -race for packages that have known race detection issues. test: $(GO_ENV) go test $(GO_FLAGS) -race ./... - $(GO_ENV) go test $(GO_FLAGS) ./pkg/integrations/node_exporter ./pkg/logs ./pkg/operator ./pkg/util/k8s ./component/otelcol/processor/tail_sampling ./component/loki/source/file + $(GO_ENV) go test $(GO_FLAGS) ./pkg/integrations/node_exporter ./pkg/logs ./pkg/operator ./pkg/util/k8s ./component/otelcol/processor/tail_sampling ./component/loki/source/file ./component/otelcol/processor/probabilistic_sampler test-packages: docker pull $(BUILD_IMAGE) diff --git a/component/otelcol/processor/probabilistic_sampler/probabilistic_sampler_test.go b/component/otelcol/processor/probabilistic_sampler/probabilistic_sampler_test.go index ebe94aab893e..679e12e571b9 100644 --- a/component/otelcol/processor/probabilistic_sampler/probabilistic_sampler_test.go +++ b/component/otelcol/processor/probabilistic_sampler/probabilistic_sampler_test.go @@ -1,3 +1,5 @@ +//go:build !race + package probabilistic_sampler import (