summaryrefslogtreecommitdiffstats
path: root/integrations/api_repo_file_update_test.go
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-06-12 16:07:24 -0500
committertechknowlogick <hello@techknowlogick.com>2019-06-12 17:07:24 -0400
commit8f0182c3229dfbb8d731557e5006e39bd616b4e9 (patch)
tree3c8b8319980a19cb811acb2ffc5471b3ac71ff79 /integrations/api_repo_file_update_test.go
parent744fd6a1c87f2ad39dbe282133fae1190df6e538 (diff)
downloadgitea-8f0182c3229dfbb8d731557e5006e39bd616b4e9.tar.gz
gitea-8f0182c3229dfbb8d731557e5006e39bd616b4e9.zip
API error cleanup (#7186)
Diffstat (limited to 'integrations/api_repo_file_update_test.go')
-rw-r--r--integrations/api_repo_file_update_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/api_repo_file_update_test.go b/integrations/api_repo_file_update_test.go
index eab7090df6..90fecf59d0 100644
--- a/integrations/api_repo_file_update_test.go
+++ b/integrations/api_repo_file_update_test.go
@@ -13,7 +13,6 @@ import (
"testing"
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
@@ -173,7 +172,7 @@ func TestAPIUpdateFile(t *testing.T) {
resp = session.MakeRequest(t, req, http.StatusInternalServerError)
expectedAPIError := context.APIError{
Message: "sha does not match [given: " + updateFileOptions.SHA + ", expected: " + correctSHA + "]",
- URL: base.DocURL,
+ URL: setting.API.SwaggerURL,
}
var apiError context.APIError
DecodeJSON(t, resp, &apiError)