fix: Update returns nil on error, test should reflect this

Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
pull/31406/head
Jesse Simpson 6 months ago
parent 490dffeb34
commit 96b4c363c8
No known key found for this signature in database
GPG Key ID: 237495C89AB0AAFC

@ -122,7 +122,7 @@ func (f *FailingKubeWaiter) WatchUntilReady(resources kube.ResourceList, d time.
// Update returns the configured error if set or prints
func (f *FailingKubeClient) Update(r, modified kube.ResourceList, options ...kube.ClientUpdateOption) (*kube.Result, error) {
if f.UpdateError != nil {
return &kube.Result{}, f.UpdateError
return nil, f.UpdateError
}
return f.PrintingKubeClient.Update(r, modified, options...)
}

Loading…
Cancel
Save