mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-01 09:28:30 +02:00
Fix test
This commit is contained in:
@ -57,14 +57,14 @@ func TestCreateRepoObjectFormat(t *testing.T) {
|
||||
}
|
||||
|
||||
loginAddCmd := &cli.Command{
|
||||
Name: "add",
|
||||
Name: "login",
|
||||
Commands: []*cli.Command{
|
||||
&login.CmdLoginAdd,
|
||||
},
|
||||
}
|
||||
giteaUserName := os.Getenv("GITEA_TEA_TEST_USERNAME")
|
||||
giteaUserPasword := os.Getenv("GITEA_TEA_TEST_PASSWORD")
|
||||
args := []string{"add", "--name", "test-login", "--url", giteaURL, "--user", giteaUserName, "--password", giteaUserPasword}
|
||||
args := []string{"login", "add", "--name", "test-login", "--url", giteaURL, "--user", giteaUserName, "--password", giteaUserPasword}
|
||||
err := loginAddCmd.Run(context.Background(), args)
|
||||
assert.NoError(t, err)
|
||||
|
||||
|
Reference in New Issue
Block a user