diff options
Diffstat (limited to 'integrations/version_test.go')
-rw-r--r-- | integrations/version_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/version_test.go b/integrations/version_test.go index 2234366b1d..95b4dbc952 100644 --- a/integrations/version_test.go +++ b/integrations/version_test.go @@ -19,8 +19,7 @@ func TestVersion(t *testing.T) { setting.AppVer = "1.1.0+dev" req := NewRequest(t, "GET", "/api/v1/version") - resp := MakeRequest(req) - assert.EqualValues(t, http.StatusOK, resp.HeaderCode) + resp := MakeRequest(t, req, http.StatusOK) var version gitea.ServerVersion DecodeJSON(t, resp, &version) |