summaryrefslogtreecommitdiffstats
path: root/integrations/integration_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/integration_test.go
parentbde0409433531b024e30cf1a4d3e44051631ed85 (diff)
downloadgitea-befa7445d254cc88662015222c85ccd4c96b9a10.tar.gz
gitea-befa7445d254cc88662015222c85ccd4c96b9a10.zip
Unit tests for routers/repo/issue_label (#3198)
Diffstat (limited to 'integrations/integration_test.go')
-rw-r--r--integrations/integration_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/integrations/integration_test.go b/integrations/integration_test.go
index d8e97395fa..f3dc98219f 100644
--- a/integrations/integration_test.go
+++ b/integrations/integration_test.go
@@ -303,9 +303,3 @@ func GetCSRF(t testing.TB, session *TestSession, urlStr string) string {
doc := NewHTMLParser(t, resp.Body)
return doc.GetCSRF()
}
-
-func RedirectURL(t testing.TB, resp *httptest.ResponseRecorder) string {
- urlSlice := resp.HeaderMap["Location"]
- assert.NotEmpty(t, urlSlice, "No redirect URL founds")
- return urlSlice[0]
-}