This commit is contained in:
Jesús Fernández 2025-03-12 20:45:00 +01:00
parent 07c9b64d4e
commit 33abaeb7e1
2 changed files with 8 additions and 6 deletions

View File

@ -1227,13 +1227,14 @@ func TestNamespaceOverride(t *testing.T) {
} }
for name, tc := range tt { for name, tc := range tt {
_tc := tc
t.Run(name, func(t *testing.T) { t.Run(name, func(t *testing.T) {
t.Parallel() t.Parallel()
templateFile := filepath.Join("templates", tc.file) templateFile := filepath.Join("templates", _tc.file)
output, err := helm.RenderTemplateE(t, tc.options, chartPath, releaseName, []string{templateFile}) output, err := helm.RenderTemplateE(t, _tc.options, chartPath, releaseName, []string{templateFile})
if err != nil { if err != nil {
t.Errorf("Error rendering template %s from chart %s: %s", tc.file, chartPath, err) t.Errorf("Error rendering template %s from chart %s: %s", _tc.file, chartPath, err)
} }
type object struct { type object struct {

View File

@ -2449,13 +2449,14 @@ func TestNamespaceOverride(t *testing.T) {
} }
for name, tc := range tt { for name, tc := range tt {
_tc := tc
t.Run(name, func(t *testing.T) { t.Run(name, func(t *testing.T) {
t.Parallel() t.Parallel()
templateFile := filepath.Join("templates", tc.file) templateFile := filepath.Join("./templates", _tc.file)
output, err := helm.RenderTemplateE(t, tc.options, chartPath, releaseName, []string{templateFile}) output, err := helm.RenderTemplateE(t, _tc.options, chartPath, releaseName, []string{templateFile})
if err != nil { if err != nil {
t.Errorf("Error rendering template %s from chart %s: %s", tc.file, chartPath, err) t.Errorf("Error rendering template %s from chart %s: %s", _tc.file, chartPath, err)
} }
type object struct { type object struct {