mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Merge pull request #127448 from Nordix/esotsal/fix-123852
Potentially deflake "RuntimeClass should reject a Pod requesting a deleted RuntimeClass" test
This commit is contained in:
@@ -164,7 +164,7 @@ var _ = SIGDescribe("RuntimeClass", func() {
|
||||
framework.ExpectNoError(err, "failed to delete RuntimeClass %s", rcName)
|
||||
|
||||
ginkgo.By("Waiting for the RuntimeClass to disappear")
|
||||
framework.ExpectNoError(wait.PollImmediate(framework.Poll, time.Minute, func() (bool, error) {
|
||||
framework.ExpectNoError(wait.PollUntilContextTimeout(ctx, framework.Poll, time.Minute, true, func(ctx context.Context) (bool, error) {
|
||||
_, err := rcClient.Get(ctx, rcName, metav1.GetOptions{})
|
||||
if apierrors.IsNotFound(err) {
|
||||
return true, nil // done
|
||||
|
Reference in New Issue
Block a user