Skip to content

Commit

Permalink
Fix used scheme for fake client in List method
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok authored and vincepri committed Jul 24, 2019
1 parent 8cb8447 commit c1cdcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/fake/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (c *fakeClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.
}

func (c *fakeClient) List(ctx context.Context, obj runtime.Object, opts ...client.ListOptionFunc) error {
gvk, err := apiutil.GVKForObject(obj, scheme.Scheme)
gvk, err := apiutil.GVKForObject(obj, c.scheme)
if err != nil {
return err
}
Expand Down

0 comments on commit c1cdcf1

Please sign in to comment.