Skip to content

Commit 396ed46

Browse files
committed
fix test
1 parent 083a25b commit 396ed46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/actions/actions_trigger_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
pull_service "code.gitea.io/gitea/services/pull"
2222
repo_service "code.gitea.io/gitea/services/repository"
2323
files_service "code.gitea.io/gitea/services/repository/files"
24-
"code.gitea.io/gitea/tests"
2524

2625
"github.com/stretchr/testify/assert"
2726
)
@@ -33,7 +32,8 @@ func TestMain(m *testing.M) {
3332
}
3433

3534
func TestPullRequestTargetEvent(t *testing.T) {
36-
defer tests.PrepareTestEnv(t)()
35+
assert.NoError(t, unittest.PrepareTestDatabase())
36+
3737
user2 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2}) // owner of the base repo
3838
user3 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 3}) // owner of the forked repo
3939

0 commit comments

Comments
 (0)