forked from mirror/cobra
cmd: Fix tests
This commit is contained in:
parent
4db577d34d
commit
e97db2b866
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue