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:
Kubernetes Prow Robot
2024-09-20 08:07:43 +01:00
committed by GitHub

View File

@@ -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