diff --git a/pkg/configprovider/opampprovider/provider_test.go b/pkg/configprovider/opampprovider/provider_test.go index 31486b04e9..26cfa32af6 100644 --- a/pkg/configprovider/opampprovider/provider_test.go +++ b/pkg/configprovider/opampprovider/provider_test.go @@ -79,7 +79,11 @@ func TestInvalidYAML(t *testing.T) { func TestValid(t *testing.T) { p := New() - defer func() { _ = p.Shutdown(context.Background()) }() + defer func() { + if err := p.Shutdown(context.Background()); err != nil { + t.Error(err) + } + }() ret, err := p.Retrieve(context.Background(), "opamp:"+absolutePath(t, filepath.Join("testdata", "valid.yaml")), nil) if err != nil { t.Fatal(err)