chore: correctly prepare test env (#8686)

- Ref forgejo/forgejo#8681

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8686
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
Gusted 2025-07-26 16:14:42 +02:00 committed by Gusted
parent d22f9d1f38
commit ee35b617b7

View file

@ -138,7 +138,7 @@ func TestPullCombinedReviewRequest(t *testing.T) {
}
func TestShowMergeForManualMerge(t *testing.T) {
defer tests.PrintCurrentTest(t)()
defer tests.PrepareTestEnv(t)()
// Only allow manual merge strategy for this repository.
pullRepoUnit := unittest.AssertExistsAndLoadBean(t, &repo_model.RepoUnit{ID: 5, RepoID: 1, Type: unit.TypePullRequests})