diff options
author | Gusted <williamzijl7@hotmail.com> | 2021-12-28 13:28:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 21:28:27 +0800 |
commit | e4e3df6c66dbeac6ac5bceff8ac4f05dbea30d70 (patch) | |
tree | ea7ef42f8d34580b8ec1319f6bc2cd84c6fb973a /integrations/api_releases_test.go | |
parent | d2fac636d16a596a36a3088ff05ffe812ba6eff2 (diff) | |
download | gitea-e4e3df6c66dbeac6ac5bceff8ac4f05dbea30d70.tar.gz gitea-e4e3df6c66dbeac6ac5bceff8ac4f05dbea30d70.zip |
Handle invalid issues (#18111)
* Handle invalid issues
- When you hover over a issue reference, and the issue doesn't exist, it
will just hang on the loading animation.
- This patch fixes that by showing them the pop-up with a "Error
occured" message.
* Add I18N
* refactor
* fix comment for lint
* fix unit test for i18n
* fix unit test for i18n
* add comments
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'integrations/api_releases_test.go')
-rw-r--r-- | integrations/api_releases_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_releases_test.go b/integrations/api_releases_test.go index b3d9c898e4..815b749110 100644 --- a/integrations/api_releases_test.go +++ b/integrations/api_releases_test.go @@ -207,7 +207,7 @@ func TestAPIGetReleaseByTag(t *testing.T) { var err *api.APIError DecodeJSON(t, resp, &err) - assert.EqualValues(t, "Not Found", err.Message) + assert.NotEmpty(t, err.Message) } func TestAPIDeleteReleaseByTagName(t *testing.T) { |