Skip to content

Commit 91c7a3e

Browse files
authored
Fix tests on migrations (#21705)
1 parent 8c1d988 commit 91c7a3e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

models/migrations/v1_19/main_test.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2021 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 v1_19 // nolint
6+
7+
import (
8+
"testing"
9+
10+
"code.gitea.io/gitea/models/migrations/base"
11+
)
12+
13+
func TestMain(m *testing.M) {
14+
base.MainTest(m)
15+
}

models/migrations/v1_19/v233_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/stretchr/testify/assert"
1717
)
1818

19-
func Test_addHeaderAuthorizationEncryptedColWebhook(t *testing.T) {
19+
func Test_AddHeaderAuthorizationEncryptedColWebhook(t *testing.T) {
2020
// Create Webhook table
2121
type Webhook struct {
2222
ID int64 `xorm:"pk autoincr"`

0 commit comments

Comments
 (0)