Skip to content

Commit bf89124

Browse files
committed
add main
1 parent bb15a67 commit bf89124

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/actions/actions_trigger_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package actions_test
55

66
import (
7+
"path/filepath"
78
"testing"
89
"time"
910

@@ -25,6 +26,12 @@ import (
2526
"github.com/stretchr/testify/assert"
2627
)
2728

29+
func TestMain(m *testing.M) {
30+
unittest.MainTest(m, &unittest.TestOptions{
31+
GiteaRootPath: filepath.Join("..", "..", ".."),
32+
})
33+
}
34+
2835
func TestPullRequestTargetEvent(t *testing.T) {
2936
defer tests.PrepareTestEnv(t)()
3037
user2 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2}) // owner of the base repo

0 commit comments

Comments
 (0)