mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-19 14:34:17 +00:00
Bump up the versions of severel Kubernetes-related libs
Bump up the versions of severel Kubernetes-related libs Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
@@ -129,7 +129,7 @@ func (r *Ensurer) waitBackupRepository(ctx context.Context, namespace string, ba
|
||||
}
|
||||
}
|
||||
|
||||
err := wait.PollWithContext(ctx, time.Millisecond*500, r.resourceTimeout, checkFunc)
|
||||
err := wait.PollUntilContextTimeout(ctx, time.Millisecond*500, r.resourceTimeout, true, checkFunc)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to wait BackupRepository")
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ func TestEnsureRepo(t *testing.T) {
|
||||
bkRepoObjNotReady,
|
||||
},
|
||||
runtimeScheme: scheme,
|
||||
err: "failed to wait BackupRepository: timed out waiting for the condition",
|
||||
err: "failed to wait BackupRepository: context deadline exceeded",
|
||||
},
|
||||
{
|
||||
name: "create fail",
|
||||
@@ -110,7 +110,7 @@ func TestEnsureRepo(t *testing.T) {
|
||||
bsl: "fake-bsl",
|
||||
repositoryType: "fake-repo-type",
|
||||
runtimeScheme: scheme,
|
||||
err: "failed to wait BackupRepository: timed out waiting for the condition",
|
||||
err: "failed to wait BackupRepository: context deadline exceeded",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ func TestCreateBackupRepositoryAndWait(t *testing.T) {
|
||||
bsl: "fake-bsl",
|
||||
repositoryType: "fake-repo-type",
|
||||
runtimeScheme: scheme,
|
||||
err: "failed to wait BackupRepository: timed out waiting for the condition",
|
||||
err: "failed to wait BackupRepository: context deadline exceeded",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user