mirror of
https://gitee.com/gitea/gitea
synced 2025-11-20 08:20:26 +08:00
Same perl replacement as https://github.com/go-gitea/gitea/pull/25686 but for 1.20 to ease future backporting.
This commit is contained in:
@@ -207,7 +207,7 @@ func TestAPIEditUser(t *testing.T) {
|
||||
})
|
||||
resp := MakeRequest(t, req, http.StatusUnprocessableEntity)
|
||||
|
||||
errMap := make(map[string]interface{})
|
||||
errMap := make(map[string]any)
|
||||
json.Unmarshal(resp.Body.Bytes(), &errMap)
|
||||
assert.EqualValues(t, "email is not allowed to be empty string", errMap["message"].(string))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user