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 test comparison stability. #6

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Jul 20, 2020

Internally, the check response heaers use maps, so the header slice
ordering is not stable. Add a test helper to sort this for stable test
comparisons.

Signed-off-by: James Peach [email protected]

Internally, the check response heaers use maps, so the header slice
ordering is not stable. Add a test helper to sort this for stable test
comparisons.

Signed-off-by: James Peach <[email protected]>
Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM

@jpeach jpeach merged commit 6c15b6f into projectcontour:master Jul 20, 2020
@jpeach jpeach deleted the test-equal-stability branch July 20, 2020 03:52
robinfoe pushed a commit to robinfoe/contour-authserver that referenced this pull request Feb 11, 2021
Internally, the check response heaers use maps, so the header slice
ordering is not stable. Add a test helper to sort this for stable test
comparisons.

Signed-off-by: James Peach <[email protected]>
Signed-off-by: robinfoe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants