summaryrefslogtreecommitdiffstats
path: root/integrations/issue_test.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-15 13:11:02 -0800
committerLauris BH <lauris@nix.lv>2017-12-15 23:11:02 +0200
commitbefa7445d254cc88662015222c85ccd4c96b9a10 (patch)
treed9d7bc81d0eb05c026e8b6688871b38695d5af00 /integrations/issue_test.go
parentbde0409433531b024e30cf1a4d3e44051631ed85 (diff)
downloadgitea-befa7445d254cc88662015222c85ccd4c96b9a10.tar.gz
gitea-befa7445d254cc88662015222c85ccd4c96b9a10.zip
Unit tests for routers/repo/issue_label (#3198)
Diffstat (limited to 'integrations/issue_test.go')
-rw-r--r--integrations/issue_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/integrations/issue_test.go b/integrations/issue_test.go
index d6fd712c9a..10084000db 100644
--- a/integrations/issue_test.go
+++ b/integrations/issue_test.go
@@ -13,6 +13,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/test"
"github.com/PuerkitoBio/goquery"
"github.com/stretchr/testify/assert"
@@ -122,7 +123,7 @@ func testNewIssue(t *testing.T, session *TestSession, user, repo, title, content
})
resp = session.MakeRequest(t, req, http.StatusFound)
- issueURL := RedirectURL(t, resp)
+ issueURL := test.RedirectURL(resp)
req = NewRequest(t, "GET", issueURL)
resp = session.MakeRequest(t, req, http.StatusOK)
@@ -153,7 +154,7 @@ func testIssueAddComment(t *testing.T, session *TestSession, issueURL, content,
})
resp = session.MakeRequest(t, req, http.StatusFound)
- req = NewRequest(t, "GET", RedirectURL(t, resp))
+ req = NewRequest(t, "GET", test.RedirectURL(resp))
resp = session.MakeRequest(t, req, http.StatusOK)
htmlDoc = NewHTMLParser(t, resp.Body)