From e97db2b866e9018814e1c57c1b4b71e0840f17b1 Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Tue, 9 May 2017 11:15:48 +0200 Subject: [PATCH] cmd: Fix tests --- cobra/cmd/init_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }