Open pohly opened 1 year ago
/sig storage
/sig testing
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/triage accepted
/help
@xing-yang: This request has been marked as needing help from a contributor.
Please ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help
command.
/assign
/remove-lifecycle stale
This issue has not been updated in over 1 year, and should be re-triaged.
You can:
/triage accepted
(org members only)/close
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/
/remove-triage accepted
/triage accepted
What would you like to be added?
While working on https://github.com/kubernetes/kubernetes/pull/114825 I found tests that used
WaitForPodRunning
followed byExpectError
because they create a pod that is not supposed to get started.A better approach is to
gomega.Consistently
forpod is pending
:I know of at least two more tests which I haven't changed yet:
Besides fixing those two tests, we also need to think about how we can find other instances and how to guide developers towards writing better tests.
Perhaps
framework.ExpectError
should be deprecated? If an error is expected, shouldn't the test ensure that the expected error occurred and not some error?Why is this needed?