Skip to content

Commit

Permalink
Substitute depracted UnmarshalConfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscovalentecastro committed Aug 7, 2024
1 parent b9d262c commit a011c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/mongodbreceiver/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func TestLoadConfig(t *testing.T) {

sub, err := cm.Sub(component.NewIDWithName(metadata.Type, "").String())
require.NoError(t, err)
require.NoError(t, component.UnmarshalConfig(sub, cfg))
require.NoError(t, sub.Unmarshal(cfg))

expected := factory.CreateDefaultConfig().(*Config)
expected.Hosts = []confignet.AddrConfig{
Expand Down

0 comments on commit a011c66

Please sign in to comment.