Skip to content

Commit

Permalink
[chore] Fix awss3 exporter test (open-telemetry#31138)
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-psi authored Feb 8, 2024
1 parent cd0db68 commit a73b62f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exporter/awss3exporter/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ 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) {
factories, err := otelcoltest.NopFactories()
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)
Expand Down

0 comments on commit a73b62f

Please sign in to comment.