-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix flaky UT #176
fix flaky UT #176
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mshitrit The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2528ffd
to
24340e7
Compare
/test 4.14-openshift-e2e |
controllers/tests/controller/selfnoderemediation_controller_test.go
Outdated
Show resolved
Hide resolved
Can you separate fixing flaky UT, and removing VA logic into two commits? It would be easier for future us to know if flaky UT is related to VA logic. Do you happen to understand why this unit test is flaky? |
Signed-off-by: Michael Shitrit <[email protected]>
Signed-off-by: Michael Shitrit <[email protected]>
24340e7
to
d46a054
Compare
Sure done.
Not sure if you refer to a specific failure regarding the VA or in general. |
/test 4.14-openshift-e2e |
/lgtm |
} | ||
|
||
func verifyNoEvent(eventType, reason, message string) { | ||
isEventMatch := isEventOccurred(eventType, reason, message) | ||
ExpectWithOffset(1, isEventMatch).To(BeFalse()) | ||
EventuallyWithOffset(1, func() bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be Consistently I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here: #178
Fixing flaky UT, and removing VA logic since SNR does not delete VA's anymore