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 Graphite boolean serialization test's non-deterministic behavior #3198

Conversation

trueneu
Copy link
Contributor

@trueneu trueneu commented Sep 4, 2017

Due to using map in test data generation, precise order fields in generated metric, and consequentially in serialised data, is undetermined. Thus Graphite plugin boolean serialisation tests may or may not fail, seemingly randomly.

There seems to be a PR in testify (stretchr/testify#491) that addresses asserting for equality of two slices disregarding order of items, which would help here. Until it's merged, a working solution would be to just sort both slices.

  • Signed CLA.
    README.md and unit tests are not applicable

@danielnelson
Copy link
Contributor

Oops, I fixed this earlier today before I saw your PR, thank you though :/

98e784f.

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