Skip to content

Commit

Permalink
Update Telemetry test: exclude cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-0 committed Nov 6, 2024
1 parent ca1de07 commit 2b06ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/internal/telemetrytest/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ddtrace/tracer/option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func TestIntegrationEnabled(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
}
p := strings.Replace(pkg.Dir, pkg.Root, "../..", 1)
Expand Down

0 comments on commit 2b06ea5

Please sign in to comment.