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

Fixing TestOutgoingTrailerMatcher, which was non-deterministic #4265

Merged

Conversation

joshgarnett
Copy link
Contributor

Recently the test was updated to also check the headers. The test will sometimes fail when checking the headers returned, when there were multiple pairs added to the TrailerMD. This is caused by the TrailerMD being a map, which has a non-deterministic read order. The simple fix is to just sorts the Trailer headers returned before comparing.

Fixes #4264

Recently the test was updated to also check the headers.  The test will sometimes fail when checking the headers returned, when there were multiple pairs added to the TrailerMD.  This is caused by the TrailerMD being a map, which has a non-deterministic read order.  The simple fix is to just sorts the Trailer headers returned before comparing.
Copy link
Collaborator

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

Thanks!

@johanbrandhorst johanbrandhorst merged commit f9841f5 into grpc-ecosystem:main Apr 30, 2024
17 checks passed
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.

TestOutgoingTrailerMatcher is non-deterministic
2 participants