diff --git a/internal/command/show_test.go b/internal/command/show_test.go index 5f220e906..00a9e555a 100644 --- a/internal/command/show_test.go +++ b/internal/command/show_test.go @@ -576,6 +576,9 @@ func TestShow_json_output(t *testing.T) { } json.Unmarshal([]byte(byteValue), &want) + // Disregard format version to reduce needless test fixture churn + want.FormatVersion = got.FormatVersion + if !cmp.Equal(got, want) { t.Fatalf("wrong result:\n %v\n", cmp.Diff(got, want)) } @@ -667,6 +670,9 @@ func TestShow_json_output_sensitive(t *testing.T) { } json.Unmarshal([]byte(byteValue), &want) + // Disregard format version to reduce needless test fixture churn + want.FormatVersion = got.FormatVersion + if !cmp.Equal(got, want) { t.Fatalf("wrong result:\n %v\n", cmp.Diff(got, want)) }