fix: CI
This commit is contained in:
parent
07c9b64d4e
commit
33abaeb7e1
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue