aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/version_test.go
diff options
context:
space:
mode:
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