Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42616f2

Browse files
committed
sync chart_test.go between coder and provisioner
1 parent bfba244 commit 42616f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

helm/provisioner/tests/chart_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func TestRenderChart(t *testing.T) {
121121
helmPath := lookupHelm(t)
122122
err := updateHelmDependencies(t, helmPath, "..")
123123
require.NoError(t, err, "failed to build Helm dependencies")
124+
124125
for _, tc := range testCases {
125126
tc := tc
126127
t.Run(tc.name, func(t *testing.T) {
@@ -162,6 +163,9 @@ func TestUpdateGoldenFiles(t *testing.T) {
162163
}
163164

164165
helmPath := lookupHelm(t)
166+
err := updateHelmDependencies(t, helmPath, "..")
167+
require.NoError(t, err, "failed to build Helm dependencies")
168+
165169
for _, tc := range testCases {
166170
if tc.expectedError != "" {
167171
t.Logf("skipping test case %q with render error", tc.name)
@@ -171,7 +175,8 @@ func TestUpdateGoldenFiles(t *testing.T) {
171175
valuesPath := tc.valuesFilePath()
172176
templateOutput, err := runHelmTemplate(t, helmPath, "..", valuesPath)
173177
if err != nil {
174-
t.Logf("Command output:\n%s", templateOutput)
178+
t.Logf("error running `helm template -f %q`: %v", valuesPath, err)
179+
t.Logf("output: %s", templateOutput)
175180
}
176181
require.NoError(t, err, "failed to run `helm template -f %q`", valuesPath)
177182

0 commit comments

Comments
 (0)