Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-psi committed Dec 18, 2023
1 parent f6491e0 commit b074704
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions comp/otelcol/otlp/internal/serializerexporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"go.opentelemetry.io/collector/exporter/exportertest"
"go.opentelemetry.io/collector/component/componenttest"
"go.opentelemetry.io/collector/pdata/pmetric"

"github.com/DataDog/datadog-agent/pkg/config"
Expand Down Expand Up @@ -190,11 +190,10 @@ func Test_ConsumeMetrics_Tags(t *testing.T) {
tt.setConfig(t)
}
rec := &metricRecorder{}
f := NewFactory(rec)
exp, err := f.CreateMetricsExporter(
context.Background(),
exportertest.NewNopCreateSettings(),
f.CreateDefaultConfig(),
exp, err := newExporter(
componenttest.NewNopTelemetrySettings(),
rec,
NewFactory(rec).CreateDefaultConfig().(*exporterConfig),
)
if err != nil {
t.Errorf("newExporter() returns unexpected error: %v", err)
Expand Down

0 comments on commit b074704

Please sign in to comment.