From 0b4bbf506ceedca64708dd819e2324d10bad719a Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 7 Dec 2022 19:17:39 -0800 Subject: [PATCH] [chore] remove some deprecate API calls in componenttest (#6706) Signed-off-by: Bogdan Drutu Signed-off-by: Bogdan Drutu --- component/componenttest/nop_factories.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/component/componenttest/nop_factories.go b/component/componenttest/nop_factories.go index ae1f92831e5..72c5a9a49d2 100644 --- a/component/componenttest/nop_factories.go +++ b/component/componenttest/nop_factories.go @@ -16,6 +16,8 @@ package componenttest // import "go.opentelemetry.io/collector/component/compone import ( "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/exporter" + "go.opentelemetry.io/collector/extension" ) // NopFactories returns a component.Factories with all nop factories. @@ -24,7 +26,7 @@ func NopFactories() (component.Factories, error) { var err error //nolint:staticcheck - if factories.Extensions, err = component.MakeExtensionFactoryMap(NewNopExtensionFactory()); err != nil { + if factories.Extensions, err = extension.MakeFactoryMap(NewNopExtensionFactory()); err != nil { return component.Factories{}, err } @@ -33,7 +35,7 @@ func NopFactories() (component.Factories, error) { } //nolint:staticcheck - if factories.Exporters, err = component.MakeExporterFactoryMap(NewNopExporterFactory()); err != nil { + if factories.Exporters, err = exporter.MakeFactoryMap(NewNopExporterFactory()); err != nil { return component.Factories{}, err }