diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2018-01-16 12:07:47 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-01-16 13:07:47 +0200 |
commit | 095fb9f2e32fe78acb9bc034f0e1d60922ff1e60 (patch) | |
tree | 508614b1049937fb8a9fa6eabe81470b50d5eff4 /integrations/repo_test.go | |
parent | 695b10beddc640d333fd5864cb6edb03e540b344 (diff) | |
download | gitea-095fb9f2e32fe78acb9bc034f0e1d60922ff1e60.tar.gz gitea-095fb9f2e32fe78acb9bc034f0e1d60922ff1e60.zip |
Add integrations tests from git cli (#3377)
* test: integration add git cli tests
Extracted form for easing review process and debug #3152
* test: integration add git cli big file commit
* fix: Don't rewrite key if internal server
Diffstat (limited to 'integrations/repo_test.go')
-rw-r--r-- | integrations/repo_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/repo_test.go b/integrations/repo_test.go index 8465bbdc5a..a18bfabdf3 100644 --- a/integrations/repo_test.go +++ b/integrations/repo_test.go @@ -71,6 +71,6 @@ func TestViewRepo1CloneLinkAuthorized(t *testing.T) { assert.Equal(t, setting.AppURL+"user2/repo1.git", link) link, exists = htmlDoc.doc.Find("#repo-clone-ssh").Attr("data-link") assert.True(t, exists, "The template has changed") - sshURL := fmt.Sprintf("%s@%s:user2/repo1.git", setting.RunUser, setting.SSH.Domain) + sshURL := fmt.Sprintf("ssh://%s@%s:%d/user2/repo1.git", setting.RunUser, setting.SSH.Domain, setting.SSH.Port) assert.Equal(t, sshURL, link) } |