google / fscrypt

Go tool for managing Linux filesystem encryption
Apache License 2.0
876 stars 97 forks source link

Ignore JSON whitespace in tests #364

Closed josephlr closed 1 year ago

josephlr commented 1 year ago

Follow up to #362

Protojson randomly inserts whitespace to indicate that the output is unstable, breaking out tests. To fix this, compact the output before comparison.

Signed-off-by: Joe Richey joerichey@google.com