From a59c030385d0db4b070798c4275e14abea0ed4bb Mon Sep 17 00:00:00 2001 From: sentriz Date: Mon, 8 Nov 2021 19:32:27 +0000 Subject: [PATCH] add a hint about regenerating ctrlsubsonic tests --- server/ctrlsubsonic/ctrl_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/ctrlsubsonic/ctrl_test.go b/server/ctrlsubsonic/ctrl_test.go index 1083098..862e26a 100644 --- a/server/ctrlsubsonic/ctrl_test.go +++ b/server/ctrlsubsonic/ctrl_test.go @@ -87,7 +87,9 @@ func runQueryCases(t *testing.T, contr *Controller, h handlerSubsonic, cases []* diff := expected.Diff(actual, diffOpts...) if len(diff) > 0 { - t.Errorf("\u001b[31;1mdiffering json\u001b[0m\n%s", diff.Render()) + t.Errorf("\u001b[31;1mhandler json differs from test json\u001b[0m") + t.Errorf("\u001b[33;1mif you want to regenerate it, re-run with GONIC_REGEN=%s\u001b[0m\n", t.Name()) + t.Error(diff.Render()) } }) }