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: remove failing non-deterministic regression tests #142

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Jun 25, 2024

These tests use protojson.Marshal which states:

Do not depend on the output being stable. Its output will change across different builds of your program, even when using the same version of the protobuf module.

I believe they actually intentionally use random numbers to introduce whitespace 😬.

Rather than finding a substitute, this PR simply deletes these tests for now. In #83 there was an attempt to create a deterministic JSON marshaler. Someone could pick that up at some point if such a feature is desired.

@aaronc aaronc requested a review from a team as a code owner June 25, 2024 14:41
@aaronc aaronc merged commit 3e53812 into main Jun 25, 2024
3 checks passed
@aaronc aaronc deleted the aaronc/fix-rapid-proto-tests branch June 25, 2024 19:29
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.

3 participants