Skip to content

Commit 7e4dd69

Browse files
committed
chore: clean up test non-constant Errorf usage
1 parent 46d8101 commit 7e4dd69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/internal/kubernetes/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func WaitForDeploymentToDelete(ctx context.Context, deploymentsClient typedappsv
359359
if apierrors.IsNotFound(err) {
360360
return nil
361361
}
362-
return errors.Errorf(fmt.Sprintf("expected isNotFound error when getting deployment, but got %+v", err))
362+
return errors.Errorf("expected isNotFound error when getting deployment, but got %v", err)
363363
}
364364
retrier := retry.Retrier{Attempts: DeleteRetryAttempts, Delay: DeleteRetryDelay}
365365
return errors.Wrapf(retrier.Do(ctx, assertDeploymentNotFound), "could not assert deployment %s isNotFound", d.Name)

0 commit comments

Comments
 (0)