diff --git a/exporter/awss3exporter/config_test.go b/exporter/awss3exporter/config_test.go index 97e0478783bd..4ff16b56b9b7 100644 --- a/exporter/awss3exporter/config_test.go +++ b/exporter/awss3exporter/config_test.go @@ -13,6 +13,8 @@ import ( "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/otelcol/otelcoltest" "go.uber.org/multierr" + + "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awss3exporter/internal/metadata" ) func TestLoadConfig(t *testing.T) { @@ -20,7 +22,7 @@ func TestLoadConfig(t *testing.T) { assert.NoError(t, err) factory := NewFactory() - factories.Exporters["awss3"] = factory + factories.Exporters[metadata.Type] = factory cfg, err := otelcoltest.LoadConfigAndValidate(filepath.Join("testdata", "default.yaml"), factories) require.NoError(t, err)