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

e2e: Don't rely on order of inconsistent results #790

Merged
merged 1 commit into from
Feb 7, 2022
Merged

e2e: Don't rely on order of inconsistent results #790

merged 1 commit into from
Feb 7, 2022

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Feb 7, 2022

The TestInconsistentResult e2e test was relying on a certain order in
which a test result is labeled. If the result order was swapped, even if
it contained the same results, the test would fail.

This patch fixes the test to accept either of the two possible
orderings. Since there's only two, both are hardcoded and checked, if we
ever have more combinations, we'll refactor the code so that it is more
generic.

The TestInconsistentResult e2e test was relying on a certain order in
which a test result is labeled. If the result order was swapped, even if
it contained the same results, the test would fail.

This patch fixes the test to accept either of the two possible
orderings. Since there's only two, both are hardcoded and checked, if we
ever have more combinations, we'll refactor the code so that it is more
generic.
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2022
@openshift-ci
Copy link

openshift-ci bot commented Feb 7, 2022

@jhrozek: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@mrogers950 mrogers950 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2022
@openshift-ci
Copy link

openshift-ci bot commented Feb 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhrozek, mrogers950

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

@openshift-merge-robot openshift-merge-robot merged commit c8ea431 into openshift:master Feb 7, 2022
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants