Skip to content

Commit 00283d1

Browse files
authored
chore: helm golden file test log output on failure (coder#12661)
Debugging this is hard without the actual helm error
1 parent 23e3e4c commit 00283d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helm/provisioner/tests/chart_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ func TestUpdateGoldenFiles(t *testing.T) {
136136

137137
valuesPath := tc.valuesFilePath()
138138
templateOutput, err := runHelmTemplate(t, helmPath, "..", valuesPath)
139-
139+
if err != nil {
140+
t.Logf("Command output:\n%s", templateOutput)
141+
}
140142
require.NoError(t, err, "failed to run `helm template -f %q`", valuesPath)
141143

142144
goldenFilePath := tc.goldenFilePath()

0 commit comments

Comments
 (0)