Skip to content

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 June 25, 2024 14:41
@aaronc aaronc merged commit 3e53812 into main Jun 25, 2024
@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

Development

Successfully merging this pull request may close these issues.

4 participants