aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/webhook_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/repo/webhook_test.go')
-rw-r--r--internal/route/repo/webhook_test.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/internal/route/repo/webhook_test.go b/internal/route/repo/webhook_test.go
index 02f27b92..182c6eed 100644
--- a/internal/route/repo/webhook_test.go
+++ b/internal/route/repo/webhook_test.go
@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"gogs.io/gogs/internal/db"
- "gogs.io/gogs/internal/mock"
+ "gogs.io/gogs/internal/mocks"
)
func Test_isLocalHostname(t *testing.T) {
@@ -33,9 +33,12 @@ func Test_isLocalHostname(t *testing.T) {
}
func Test_validateWebhook(t *testing.T) {
- l := mock.NewLocale("en", func(s string, _ ...interface{}) string {
- return s
- })
+ l := &mocks.Locale{
+ MockLang: "en",
+ MockTr: func(s string, _ ...interface{}) string {
+ return s
+ },
+ }
tests := []struct {
name string