summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
Diffstat (limited to 'integrations')
-rw-r--r--integrations/links_test.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/integrations/links_test.go b/integrations/links_test.go
index 872234e61f..d1d90cd5e3 100644
--- a/integrations/links_test.go
+++ b/integrations/links_test.go
@@ -33,6 +33,7 @@ func TestLinksNoLogin(t *testing.T) {
"/user/forgot_password",
"/api/swagger",
"/user2/repo1",
+ "/user2/repo1/",
"/user2/repo1/projects",
"/user2/repo1/projects/1",
"/assets/img/404.png",
@@ -61,16 +62,6 @@ func TestRedirectsNoLogin(t *testing.T) {
resp := MakeRequest(t, req, http.StatusFound)
assert.EqualValues(t, path.Join(setting.AppSubURL, redirectLink), test.RedirectURL(resp))
}
-
- var temporaryRedirects = map[string]string{
- "/user2/repo1/": "/user2/repo1",
- }
- for link, redirectLink := range temporaryRedirects {
- req := NewRequest(t, "GET", link)
- resp := MakeRequest(t, req, http.StatusTemporaryRedirect)
- assert.EqualValues(t, path.Join(setting.AppSubURL, redirectLink), test.RedirectURL(resp))
- }
-
}
func TestNoLoginNotExist(t *testing.T) {