Skip to content

Commit 8233a66

Browse files
committed
chore: address comments
1 parent 07c7ec4 commit 8233a66

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/unit/helm/telemetry-rolebinding_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ func (s *telemetryRoleBindingTemplateTest) TestRbacCreateDisabled() {
7171
"telemetry.enabled": "true",
7272
"telemetry.rbac.create": "false",
7373
}}
74-
75-
_, err := helm.RenderTemplateE(s.T(), options, s.chartPath, s.releaseName, s.templates)
76-
s.ErrorContains(err, "could not find template")
74+
for _, tmpl := range s.templates {
75+
_, err := helm.RenderTemplateE(s.T(), options, s.chartPath, s.releaseName, []string{tmpl})
76+
s.ErrorContains(err, "could not find template", "%s should be skipped", tmpl)
77+
}
7778
}
7879

7980
// extractRole finds the Role document (not RoleBinding) in multi-doc render output.

0 commit comments

Comments
 (0)