From 0614501ca668fd7b3f828c09e33e7b7e22c3c01a Mon Sep 17 00:00:00 2001 From: Flavien Darche Date: Wed, 6 Nov 2024 17:45:43 +0100 Subject: [PATCH] Update Telemetry test: exclude cmd --- contrib/internal/telemetrytest/telemetry_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/internal/telemetrytest/telemetry_test.go b/contrib/internal/telemetrytest/telemetry_test.go index a203228fc2..7e94ca420d 100644 --- a/contrib/internal/telemetrytest/telemetry_test.go +++ b/contrib/internal/telemetrytest/telemetry_test.go @@ -83,7 +83,7 @@ func TestTelemetryEnabled(t *testing.T) { packages = append(packages, out) } for _, pkg := range packages { - if strings.Contains(pkg.ImportPath, "/test") || strings.Contains(pkg.ImportPath, "/internal") { + if strings.Contains(pkg.ImportPath, "/test") || strings.Contains(pkg.ImportPath, "/internal") || strings.Contains(pkg.ImportPath, "/cmd") { continue } if !pkg.hasTelemetryImport(t) {