diff --git a/cobra/cmd/init_test.go b/cobra/cmd/init_test.go index f97be303..f9c9c46c 100644 --- a/cobra/cmd/init_test.go +++ b/cobra/cmd/init_test.go @@ -18,7 +18,7 @@ func TestGoldenInitCmd(t *testing.T) { defer os.RemoveAll(project.AbsPath()) os.Args = []string{"cobra", "init", projectName} - if err := RootCmd.Execute(); err != nil { + if err := rootCmd.Execute(); err != nil { t.Fatal("Error by execution:", err) }