Skip to content

Commit 1ab0221

Browse files
committed
Print out why we couldn't parse show output in the test helper
Signed-off-by: Carolyn Van Slyck <[email protected]>
1 parent c222a70 commit 1ab0221

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/tester/helpers.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ func (t Tester) ShowInstallation(namespace string, name string) (porter.DisplayI
6262

6363
var di porter.DisplayInstallation
6464

65-
require.NoError(t.T, json.Unmarshal([]byte(stdout), &di))
65+
err = json.Unmarshal([]byte(stdout), &di)
66+
if err != nil {
67+
t.T.Fatalf("porter show returned non-json output to stdout: %s", stdout)
68+
}
6669

6770
return di, nil
6871
}

0 commit comments

Comments
 (0)