From 1ab0221f08d50a7f625ff9d4f9fe1ebca9f9d107 Mon Sep 17 00:00:00 2001 From: Carolyn Van Slyck Date: Wed, 26 Apr 2023 10:02:53 -0500 Subject: [PATCH] Print out why we couldn't parse show output in the test helper Signed-off-by: Carolyn Van Slyck --- tests/tester/helpers.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/tester/helpers.go b/tests/tester/helpers.go index f5290fbd92..c4448798e2 100644 --- a/tests/tester/helpers.go +++ b/tests/tester/helpers.go @@ -62,7 +62,10 @@ func (t Tester) ShowInstallation(namespace string, name string) (porter.DisplayI var di porter.DisplayInstallation - require.NoError(t.T, json.Unmarshal([]byte(stdout), &di)) + err = json.Unmarshal([]byte(stdout), &di) + if err != nil { + t.T.Fatalf("porter show returned non-json output to stdout: %s", stdout) + } return di, nil }