this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

encoding/openapi: fix updating golden files in tests

When `CUE_UPDATE` is true, the test should not
fail when the test output differs, but it does currently.
This fixes that.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I8b304c17a9252f0e983aa623aeea3a1aca9d346d
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205770
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>

-1
-1
encoding/openapi/decode_test.go
··· 116 116 out = bytes.TrimSpace(out) 117 117 118 118 if diff := cmp.Diff(b, out); diff != "" { 119 - t.Error(diff) 120 119 if cuetest.UpdateGoldenFiles { 121 120 a.Files[outIndex].Data = b 122 121 b = txtar.Format(a)