diff --git a/cmd/aws_test.go b/cmd/aws_test.go index 7fe8a50..e906662 100644 --- a/cmd/aws_test.go +++ b/cmd/aws_test.go @@ -45,7 +45,7 @@ func TestQueryAllRegions(t *testing.T) { defer os.RemoveAll(dir) kubeconfigPath := filepath.Join(dir, "kubeconfig") - cmd := NewRootCommand("", "", "") + cmd := NewRootCommand("", "", "", "kdiscover") buf := new(strings.Builder) cmd.SetOut(buf) cmd.SetErr(buf) diff --git a/cmd/root_test.go b/cmd/root_test.go index bd2d7d8..4b78428 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -40,7 +40,7 @@ func Test_CascadingPersistPreRunEHackWithLoggingLevels(t *testing.T) { defer os.RemoveAll(dir) kubeconfigPath := filepath.Join(dir, "kubeconfig") - cmd := NewRootCommand("", "", "") + cmd := NewRootCommand("", "", "", "kdiscover") cmd.SetOut(ioutil.Discard) cmd.SetErr(ioutil.Discard) @@ -76,7 +76,7 @@ func Test_HelpFunction(t *testing.T) { for _, tt := range basicCommands { testname := fmt.Sprintf("command %v", tt.cmd) t.Run(testname, func(t *testing.T) { - cmd := NewRootCommand("", "", "") + cmd := NewRootCommand("", "", "", "kdiscover") buf := new(strings.Builder) cmd.SetOut(buf) diff --git a/cmd/version_test.go b/cmd/version_test.go index a65d046..d7a3af6 100644 --- a/cmd/version_test.go +++ b/cmd/version_test.go @@ -33,7 +33,7 @@ func Test_Version(t *testing.T) { version := "mock-version" commit := "mock-commit" date := "mock-date" - cmd := NewRootCommand(version, commit, date) + cmd := NewRootCommand(version, commit, date, "kdisocver") buf := new(strings.Builder) cmd.SetOut(buf) cmd.SetErr(buf)