Skip to content

Commit 3cdc033

Browse files
committed
fix test
1 parent 306a96e commit 3cdc033

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

models/migrations/v1_25/v321_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ func Test_UseLongTextInSomeColumnsAndFixBugs(t *testing.T) {
4949

5050
assert.NoError(t, UseLongTextInSomeColumnsAndFixBugs(x))
5151

52-
table, err := x.TableInfo("review_state")
52+
table, err := x.TableInfo(new(ReviewState))
5353
require.NoError(t, err)
5454
column := table.GetColumn("updated_files")
5555
require.NotNil(t, column)
5656
assert.Equal(t, "LONGTEXT", column.SQLType.Name)
5757

58-
table, err = x.TableInfo("package_property")
58+
table, err = x.TableInfo(new(PackageProperty))
5959
require.NoError(t, err)
6060
column = table.GetColumn("value")
6161
require.NotNil(t, column)
6262
assert.Equal(t, "LONGTEXT", column.SQLType.Name)
6363

64-
table, err = x.TableInfo("notice")
64+
table, err = x.TableInfo(new(Notice))
6565
require.NoError(t, err)
6666
column = table.GetColumn("description")
6767
require.NotNil(t, column)

models/migrations/v1_25/v322_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func Test_ExtendCommentTreePathLength(t *testing.T) {
2828

2929
require.NoError(t, ExtendCommentTreePathLength(x))
3030

31-
table, err := x.TableInfo("comment")
31+
table, err := x.TableInfo(new(Comment))
3232
require.NoError(t, err)
3333

3434
column := table.GetColumn("tree_path")

0 commit comments

Comments
 (0)