diff --git a/test/e2e/resource_quota_error_test.go b/test/e2e/resource_quota_error_test.go index d2876e9293ed..3aa3dc20cf22 100644 --- a/test/e2e/resource_quota_error_test.go +++ b/test/e2e/resource_quota_error_test.go @@ -41,6 +41,7 @@ func TestResourceQuotaError(t *testing.T) { clients := test.Setup(t, test.Options{Namespace: "rq-test"}) const ( errorReason = "RevisionFailed" + progressDeadlineReason = "ProgressDeadlineExceeded" waitReason = "ContainerCreating" errorMsgQuota = "forbidden: exceeded quota" revisionReason = "RevisionFailed" @@ -83,6 +84,7 @@ func TestResourceQuotaError(t *testing.T) { if cond.Reason == errorReason && cond.IsFalse() { return true, nil } + if cond.Reason == t.Logf("Reason: %s ; Message: %s ; Status: %s", cond.Reason, cond.Message, cond.Status) return true, fmt.Errorf("the service %s was not marked with expected error condition (Reason=%q, Message=%q, Status=%q), but with (Reason=%q, Message=%q, Status=%q)", names.Config, errorReason, "", "False", cond.Reason, cond.Message, cond.Status) @@ -112,6 +114,10 @@ func TestResourceQuotaError(t *testing.T) { if strings.Contains(cond.Message, errorMsgQuota) && cond.IsFalse() { return true, nil } + // Can fail with either a progress deadline exceeded error + if cond.Reason == progressDeadlineReason { + return true, nil + } // wait for the container creation if cond.Reason == waitReason { return false, nil