From 5cfb4e8cf8c00d3fc8c2634dceae2bd8c0c565f9 Mon Sep 17 00:00:00 2001 From: Taylor Thomas Date: Tue, 6 Jun 2017 22:17:26 -0700 Subject: [PATCH] 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. --- cmd/helm/helm_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/helm/helm_test.go b/cmd/helm/helm_test.go index 910daa22a..d3078dae0 100644 --- a/cmd/helm/helm_test.go +++ b/cmd/helm/helm_test.go @@ -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", },