Skip to content

Commit

Permalink
fix(otelcolbuilder): adjust after API breaking change in otelcol.Coll…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-stencel committed Nov 16, 2023
1 parent 89b3c85 commit ddf71cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions otelcolbuilder/cmd/collector_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,14 @@ func TestBuiltCollectorWithConfigurationFiles(t *testing.T) {
tc := tc
t.Parallel()

factories, err := components()
require.NoError(t, err)

locations := []string{tc.configFile}
cp, err := NewConfigProvider(locations)
require.NoError(t, err)

t.Log("Creating new app...")
app, err := otelcol.NewCollector(otelcol.CollectorSettings{
BuildInfo: component.NewDefaultBuildInfo(),
Factories: factories,
Factories: components,
ConfigProvider: cp,
})
require.NoError(t, err)
Expand Down

0 comments on commit ddf71cb

Please sign in to comment.