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 }