Skip to content

Commit dc2121d

Browse files
committed
[cmd/mdatagen] fix open-telemetry#12298 unit tests failures
Signed-off-by: Bogdan Drutu <[email protected]>
1 parent beb9002 commit dc2121d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmd/mdatagen/internal/templates/component_test.go.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
"go.opentelemetry.io/collector/receiver/receivertest"
3636
{{- end }}
3737
{{- if isScraper }}
38-
"go.opentelemetry.io/collector/consumer/consumertest"
3938
"go.opentelemetry.io/collector/scraper"
4039
"go.opentelemetry.io/collector/scraper/scrapertest"
4140
{{- end }}

cmd/mdatagen/internal/templates/telemetrytest.go.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package {{ .Package }}test
44

55
import (
6-
"context"
76
"testing"
87

98
"github.com/stretchr/testify/require"

cmd/mdatagen/internal/templates/telemetrytest_test.go.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
package {{ .Package }}test
44

55
import (
6-
"context"
6+
"context"
77
"testing"
88

99
"github.com/stretchr/testify/require"
10+
"go.opentelemetry.io/otel/metric"
1011
"go.opentelemetry.io/otel/sdk/metric/metricdata"
1112
"go.opentelemetry.io/otel/sdk/metric/metricdata/metricdatatest"
1213

13-
"go.opentelemetry.io/collector/component/componenttest"
14+
"go.opentelemetry.io/collector/component/componenttest"
1415
)
1516

1617
func TestSetupTelemetry(t *testing.T) {

0 commit comments

Comments
 (0)