1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-10 19:32:02 +00:00
forgejo/tests
forgejo-backport-action cc16887081 [v12.0/forgejo] chore: fix transient error in TestPatchStatus tests (take 2) (#9243)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/9241

AssertExistsAndLoadBean has a side effect on its argument. When retrying in a loop, it must use the non modified argument, otherwise it is bound to return the same row as the first failure and render the retry useless.

Refs forgejo/forgejo#9236

---

Without this fix it fails 100% of the time locally on testify v1.11 because it runs the test before waiting https://github.com/stretchr/testify/pull/1427

Co-authored-by: Earl Warren <contact@earl-warren.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9243
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-09-10 21:41:55 +02:00
..
e2e [v12.0/forgejo] fix(ui): clear fields when canceling adding ssh key (#9112) 2025-09-02 08:00:46 +02:00
fuzz chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta [v12.0/forgejo] fix(ui): move file rename notice to before pagination (#8852) 2025-08-10 22:19:25 +02:00
integration [v12.0/forgejo] chore: fix transient error in TestPatchStatus tests (take 2) (#9243) 2025-09-10 21:41:55 +02:00
testdata/data add model viewer for .glb (GLTF) model in file view (#8111) 2025-06-21 14:42:35 +02:00
mysql.ini.tmpl [v12.0/forgejo] Revert "feat: remove API authentication methods that uses the URL query (#7924)" (#8653) 2025-07-24 17:53:11 +02:00
pgsql.ini.tmpl [v12.0/forgejo] Revert "feat: remove API authentication methods that uses the URL query (#7924)" (#8653) 2025-07-24 17:53:11 +02:00
sqlite.ini.tmpl [v12.0/forgejo] Revert "feat: remove API authentication methods that uses the URL query (#7924)" (#8653) 2025-07-24 17:53:11 +02:00
test_utils.go [v12.0/forgejo] fix(api): deactivate issue api for disabled or external issue-tracker (#9147) 2025-09-03 16:47:02 +02:00