mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
cmd: Fix tests
This commit is contained in:
parent
4db577d34d
commit
e97db2b866
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue