Add helper function calls in TestMergeValuesExplicitEmptyOverrides for clarity

Signed-off-by: Siew Kam Onn <kosiew@gmail.com>
pull/31331/head
Siew Kam Onn 4 months ago
parent dfa49faa79
commit 69d007f70e

@ -270,6 +270,7 @@ func TestMergeValuesExplicitEmptyOverrides(t *testing.T) {
{
name: "empty map from values file",
setup: func(t *testing.T) *Options {
t.Helper()
dir := t.TempDir()
file := filepath.Join(dir, "values.yaml")
require.NoError(t, os.WriteFile(file, []byte("key: {}\n"), 0o600))
@ -278,7 +279,8 @@ func TestMergeValuesExplicitEmptyOverrides(t *testing.T) {
},
{
name: "empty map from set flag",
setup: func(_ *testing.T) *Options {
setup: func(t *testing.T) *Options {
t.Helper()
return &Options{Values: []string{"key={}"}}
},
},

Loading…
Cancel
Save