cleanup: ErrWaitTimeout is deprecated in k8s 1.27

replaced ErrWaitTimeout with Interrupted

Signed-off-by: riya-singhal31 <rsinghal@redhat.com>
This commit is contained in:
riya-singhal31
2023-04-28 14:31:58 +05:30
committed by mergify[bot]
parent 6709cdd1d0
commit 92d9785166
4 changed files with 4 additions and 8 deletions

View File

@ -19,7 +19,6 @@ package e2e
import (
"context"
"encoding/json"
"errors"
"fmt"
"regexp"
"strings"
@ -1052,7 +1051,7 @@ func waitToRemoveImagesFromTrash(f *framework.Framework, poolName string, t int)
return false, nil
})
if errors.Is(err, wait.ErrWaitTimeout) {
if wait.Interrupted(err) {
err = errReason
}