diff --git a/pkg/observer/observer_test_helper.go b/pkg/observer/observer_test_helper.go index 2aab6bf84ea..882eb27f0b7 100644 --- a/pkg/observer/observer_test_helper.go +++ b/pkg/observer/observer_test_helper.go @@ -33,7 +33,6 @@ import ( "github.com/cilium/tetragon/pkg/exporter" tetragonGrpc "github.com/cilium/tetragon/pkg/grpc" "github.com/cilium/tetragon/pkg/logger" - "github.com/cilium/tetragon/pkg/metrics" "github.com/cilium/tetragon/pkg/option" "github.com/cilium/tetragon/pkg/process" "github.com/cilium/tetragon/pkg/reader/namespace" @@ -279,7 +278,7 @@ func getDefaultObserverSensors(t *testing.T, ctx context.Context, base *sensors. // at some point in the future. I just don't see a better way that doesn't involve // a lot of code changes in a lot of a files. if !metricsEnabled { - go metrics.EnableMetrics(metricsAddr) + // go metrics.EnableMetrics(metricsAddr) metricsEnabled = true }