Skip to content

Commit 8081801

Browse files
committed
Fix test
1 parent 3cf78f2 commit 8081801

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

models/webhook/main_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2020 The Gitea Authors. All rights reserved.
2+
// Use of this source code is governed by a MIT-style
3+
// license that can be found in the LICENSE file.
4+
5+
package webhook
6+
7+
import (
8+
"path/filepath"
9+
"testing"
10+
11+
"code.gitea.io/gitea/models/db"
12+
)
13+
14+
func TestMain(m *testing.M) {
15+
db.MainTest(m, filepath.Join("..", ".."), "webhook.yml", "hook_task.yml")
16+
}

0 commit comments

Comments
 (0)