Skip to content

Commit 05c5e4f

Browse files
Update pkg/limayaml/limayaml_test.go
Co-authored-by: Oleksandr Redko <[email protected]> Signed-off-by: Anders F Björklund <[email protected]>
1 parent 1a101d2 commit 05c5e4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/limayaml/limayaml_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"gotest.tools/v3/assert"
99
)
1010

11-
func dumpJSON(d interface{}) string {
11+
func dumpJSON(t *testing.T, d interface{}) string {
1212
b, err := json.Marshal(d)
1313
if err != nil {
14-
return "ERROR"
14+
t.Fatal(err)
1515
}
1616
return string(b)
1717
}

0 commit comments

Comments
 (0)