From f56a7c3375a0cfc36909242488ffa32902bd045b Mon Sep 17 00:00:00 2001 From: Eden Federman Date: Wed, 10 Jul 2024 08:00:47 +0300 Subject: [PATCH] Fix collector tests (#1343) --- .../odigosresourcenameprocessor/generated_component_test.go | 2 +- .../odigossamplingprocessor/generated_component_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/processors/odigosresourcenameprocessor/generated_component_test.go b/collector/processors/odigosresourcenameprocessor/generated_component_test.go index 835c86ceb..5c49c0bb4 100644 --- a/collector/processors/odigosresourcenameprocessor/generated_component_test.go +++ b/collector/processors/odigosresourcenameprocessor/generated_component_test.go @@ -63,7 +63,7 @@ func TestComponentLifecycle(t *testing.T) { cfg := factory.CreateDefaultConfig() sub, err := cm.Sub("tests::config") require.NoError(t, err) - require.NoError(t, component.UnmarshalConfig(sub, cfg)) + require.NoError(t, sub.Unmarshal(&cfg)) for _, test := range tests { t.Run(test.name+"-shutdown", func(t *testing.T) { diff --git a/collector/processors/odigossamplingprocessor/generated_component_test.go b/collector/processors/odigossamplingprocessor/generated_component_test.go index 0d6048327..4cb4a7519 100644 --- a/collector/processors/odigossamplingprocessor/generated_component_test.go +++ b/collector/processors/odigossamplingprocessor/generated_component_test.go @@ -41,7 +41,7 @@ func TestComponentLifecycle(t *testing.T) { cfg := factory.CreateDefaultConfig() sub, err := cm.Sub("tests::config") require.NoError(t, err) - require.NoError(t, component.UnmarshalConfig(sub, cfg)) + require.NoError(t, sub.Unmarshal(&cfg)) for _, test := range tests { t.Run(test.name+"-shutdown", func(t *testing.T) {