summaryrefslogtreecommitdiffstats
path: root/integrations/version_test.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-09 20:41:36 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-09 19:41:36 -0500
commit61716bd8f70f55f2c5d4090c87700f6b9b6fc632 (patch)
treed3bab40ab681e0ccbbba964273ba32f6d0ace8e0 /integrations/version_test.go
parent6d613fb28ef5d884bbea1e2a4d8c3e21fc398ecc (diff)
downloadgitea-61716bd8f70f55f2c5d4090c87700f6b9b6fc632.tar.gz
gitea-61716bd8f70f55f2c5d4090c87700f6b9b6fc632.zip
Display URLs in integration test logs (#1924)
Diffstat (limited to 'integrations/version_test.go')
-rw-r--r--integrations/version_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/version_test.go b/integrations/version_test.go
index 7243357403..b5902a20a3 100644
--- a/integrations/version_test.go
+++ b/integrations/version_test.go
@@ -20,8 +20,7 @@ func TestVersion(t *testing.T) {
prepareTestEnv(t)
setting.AppVer = "1.1.0+dev"
- req, err := http.NewRequest("GET", "/api/v1/version", nil)
- assert.NoError(t, err)
+ req := NewRequest(t, "GET", "/api/v1/version")
resp := MakeRequest(req)
var version gitea.ServerVersion