diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 53c4d1a409b..a17138f9c25 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -328,7 +328,10 @@ func waitForServiceAccountInNamespace(c clientset.Interface, ns, serviceAccountN } return false, nil }) - return err + if err != nil { + return fmt.Errorf("wait for service account %q in namespace %q: %w", serviceAccountName, ns, err) + } + return nil } // WaitForDefaultServiceAccountInNamespace waits for the default service account to be provisioned