Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Dec 13, 2022
1 parent da4b738 commit aa15007
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions session/bootstrap_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,15 @@ func TestUpgradeVersion84(t *testing.T) {
{"modify_count", "bigint(64)"},
{"count", "bigint(64)"},
{"version", "bigint(64)"},
{"source", "varchar(16)"},
{"create_time", "datetime(6)"},
}
rStatsHistoryTbl, err := tk.Exec(`desc mysql.stats_meta_history`)
require.NoError(t, err)
req := rStatsHistoryTbl.NewChunk(nil)
require.NoError(t, rStatsHistoryTbl.Next(ctx, req))
require.Equal(t, 5, req.NumRows())
for i := 0; i < 5; i++ {
require.Equal(t, 6, req.NumRows())
for i := 0; i < 6; i++ {
row := req.GetRow(i)
require.Equal(t, statsHistoryTblFields[i].field, strings.ToLower(row.GetString(0)))
require.Equal(t, statsHistoryTblFields[i].tp, strings.ToLower(row.GetString(1)))
Expand Down

0 comments on commit aa15007

Please sign in to comment.