From f02138a1480015b9aa6ab5eef82506242d98612e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 9 Nov 2019 06:21:00 +0800 Subject: Fix bug when migrate from API (#8631) * fix bug when migrate from API * fix test * fix test * improve * fix error message --- integrations/api_repo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'integrations') 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"]) }) } -- cgit v1.2.3