Skip to content

Commit

Permalink
replace broken call to deleted configmapprovider.NewRetrieved() with …
Browse files Browse the repository at this point in the history
…struct
  • Loading branch information
pmcollins authored and jeffreyc-splunk committed Mar 4, 2022
1 parent cae3cb5 commit 271f3e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/configprovider/config_source_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ type mockParserProvider struct {

var _ configmapprovider.Provider = (*mockParserProvider)(nil)

func (mpp *mockParserProvider) Retrieve(_ context.Context, _ string, _ configmapprovider.WatcherFunc) (configmapprovider.Retrieved, error) {
return configmapprovider.NewRetrieved(mpp.Get)
func (mpp *mockParserProvider) Retrieve(ctx context.Context, _ string, _ configmapprovider.WatcherFunc) (configmapprovider.Retrieved, error) {
m, err := mpp.Get(ctx)
return configmapprovider.Retrieved{Map: m}, err
}

func (mpp *mockParserProvider) Shutdown(ctx context.Context) error {
Expand Down

0 comments on commit 271f3e5

Please sign in to comment.