From 559c4053620352f76953a8ef7adbeed50c5fef32 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Sun, 19 Jan 2020 15:43:57 -0500 Subject: [PATCH] fix(test): Remove invalid subcommand in test The 'home' command was removed for v3, so this commit adapts the tests. Having an invalid subcommand does not cause problems currently, but will start causing failures on newer versions of Cobra, which complain on invalid subcommands. Signed-off-by: Marc Khouzam --- cmd/helm/root_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/helm/root_test.go b/cmd/helm/root_test.go index f3eef8b6d..df592a96d 100644 --- a/cmd/helm/root_test.go +++ b/cmd/helm/root_test.go @@ -35,23 +35,23 @@ func TestRootCmd(t *testing.T) { }{ { name: "defaults", - args: "home", + args: "env", }, { name: "with $XDG_CACHE_HOME set", - args: "home", + args: "env", envvars: map[string]string{xdg.CacheHomeEnvVar: "/bar"}, cachePath: "/bar/helm", }, { name: "with $XDG_CONFIG_HOME set", - args: "home", + args: "env", envvars: map[string]string{xdg.ConfigHomeEnvVar: "/bar"}, configPath: "/bar/helm", }, { name: "with $XDG_DATA_HOME set", - args: "home", + args: "env", envvars: map[string]string{xdg.DataHomeEnvVar: "/bar"}, dataPath: "/bar/helm", },