We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083a25b commit 396ed46Copy full SHA for 396ed46
modules/actions/actions_trigger_test.go
@@ -21,7 +21,6 @@ import (
21
pull_service "code.gitea.io/gitea/services/pull"
22
repo_service "code.gitea.io/gitea/services/repository"
23
files_service "code.gitea.io/gitea/services/repository/files"
24
- "code.gitea.io/gitea/tests"
25
26
"github.com/stretchr/testify/assert"
27
)
@@ -33,7 +32,8 @@ func TestMain(m *testing.M) {
33
32
}
34
35
func TestPullRequestTargetEvent(t *testing.T) {
36
- defer tests.PrepareTestEnv(t)()
+ assert.NoError(t, unittest.PrepareTestDatabase())
+
37
user2 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2}) // owner of the base repo
38
user3 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 3}) // owner of the forked repo
39
0 commit comments