Skip to content
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 WaitTimeoutForPodEvent logic #69549

Merged
merged 1 commit into from
Oct 13, 2018

Conversation

tallclair
Copy link
Member

What this PR does / why we need it:

The framework method WaitTimeoutForPodEvent was returning an error when an event was found with the correct error message. The only test calling this method compensated by expecting the event to occur, but didn't distinguish what triggered the error.

This PR inverts the logic of the helper method (look for an event with the matching string), and flips the corresponding test logic.

Release note:

NONE

/area test
/assign @mrunalp

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/testing Categorizes an issue or PR as relevant to SIG Testing. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Oct 9, 2018
@neolit123
Copy link
Member

/retest
/kind cleanup

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Oct 9, 2018
@mrunalp
Copy link
Contributor

mrunalp commented Oct 9, 2018

/approve

@mrunalp
Copy link
Contributor

mrunalp commented Oct 9, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 9, 2018
@tallclair
Copy link
Member Author

/retest

@tallclair
Copy link
Member Author

/assign @saad-ali
For approval.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 10, 2018
@tallclair
Copy link
Member Author

Ran into a flake where no events had been recorded yet, so updated the method to keep waiting when no events are found.

@mrunalp PTAL

@mrunalp
Copy link
Contributor

mrunalp commented Oct 12, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 12, 2018
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 12, 2018
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@tallclair
Copy link
Member Author

Fixed spelling.

@tallclair
Copy link
Member Author

Reapplying lgtm for trivial fix.

@tallclair tallclair added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 12, 2018
@saad-ali
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrunalp, saad-ali, tallclair

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 12, 2018
@tallclair
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit 9c5cf3c into kubernetes:master Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants