Skip to content

Commit d468b0f

Browse files
committed
forgot to call the target function
1 parent 0589dfd commit d468b0f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

models/migrations/v1_25/v321_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"code.gitea.io/gitea/modules/timeutil"
1212

1313
"github.com/stretchr/testify/assert"
14+
"github.com/stretchr/testify/require"
1415
)
1516

1617
func Test_UseLongTextInSomeColumnsAndFixBugs(t *testing.T) {
@@ -46,7 +47,7 @@ func Test_UseLongTextInSomeColumnsAndFixBugs(t *testing.T) {
4647
x, deferrable := base.PrepareTestEnv(t, 0, new(ReviewState), new(PackageProperty), new(Notice))
4748
defer deferrable()
4849

49-
assert.NoError(t, UseLongTextInSomeColumnsAndFixBugs(x))
50+
require.NoError(t, UseLongTextInSomeColumnsAndFixBugs(x))
5051

5152
tables := base.LoadTableSchemasMap(t, x)
5253
table := tables["review_state"]

models/migrations/v1_25/v322_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"code.gitea.io/gitea/modules/setting"
1111

1212
"github.com/stretchr/testify/assert"
13+
"github.com/stretchr/testify/require"
1314
)
1415

1516
func Test_ExtendCommentTreePathLength(t *testing.T) {
@@ -25,6 +26,7 @@ func Test_ExtendCommentTreePathLength(t *testing.T) {
2526
x, deferrable := base.PrepareTestEnv(t, 0, new(Comment))
2627
defer deferrable()
2728

29+
require.NoError(t, ExtendCommentTreePathLength(x))
2830
table := base.LoadTableSchemasMap(t, x)["comment"]
2931
column := table.GetColumn("tree_path")
3032
assert.Contains(t, []string{"NVARCHAR", "VARCHAR"}, column.SQLType.Name)

0 commit comments

Comments
 (0)