diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-09 06:21:00 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-11-08 17:21:00 -0500 |
commit | f02138a1480015b9aa6ab5eef82506242d98612e (patch) | |
tree | c36279722458cd88c9146e697668b2b7c5753c18 /integrations/api_repo_test.go | |
parent | 55bdc9aa38177f75fdae4cb96e98bf465d7ecb2a (diff) | |
download | gitea-f02138a1480015b9aa6ab5eef82506242d98612e.tar.gz gitea-f02138a1480015b9aa6ab5eef82506242d98612e.zip |
Fix bug when migrate from API (#8631)
* fix bug when migrate from API
* fix test
* fix test
* improve
* fix error message
Diffstat (limited to 'integrations/api_repo_test.go')
-rw-r--r-- | integrations/api_repo_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go index 60fe4a3649..a2683d4af4 100644 --- a/integrations/api_repo_test.go +++ b/integrations/api_repo_test.go @@ -334,7 +334,7 @@ func testAPIRepoMigrateConflict(t *testing.T, u *url.URL) { resp := httpContext.Session.MakeRequest(t, req, http.StatusConflict) respJSON := map[string]string{} DecodeJSON(t, resp, &respJSON) - assert.Equal(t, respJSON["message"], "The repository with the same name already exists.") + assert.Equal(t, "The repository with the same name already exists.", respJSON["message"]) }) } |