mirror of https://github.com/helm/helm.git
fix(tests): Fixes broken unit test
The new unit test was not passing an explict subcommand arg to the root command in the unit test.
This commit is contained in:
parent
52a3405b1e
commit
5cfb4e8cf8
|
@ -351,6 +351,7 @@ func TestRootCmd(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
name: "defaults",
|
||||
args: []string{"home"},
|
||||
home: filepath.Join(os.Getenv("HOME"), "/.helm"),
|
||||
},
|
||||
{
|
||||
|
@ -365,6 +366,7 @@ func TestRootCmd(t *testing.T) {
|
|||
},
|
||||
{
|
||||
name: "with $HELM_HOME set",
|
||||
args: []string{"home"},
|
||||
envars: map[string]string{"HELM_HOME": "/bar"},
|
||||
home: "/bar",
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue