Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
buchuitoudegou committed Apr 28, 2022
1 parent 7ec3615 commit 6959514
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions br/pkg/lightning/restore/tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ func TestAlterAutoRandom(t *testing.T) {
err := AlterAutoRandom(ctx, s.tiGlue.GetSQLExecutor(), "`db`.`table`", 12345, 288230376151711743)
require.NoError(t, err)

// insert 288230376151711743 and try rebase to 288230376151711744
err = AlterAutoRandom(ctx, s.tiGlue.GetSQLExecutor(), "`db`.`table`", 288230376151711744, 288230376151711743)
require.NoError(t, err)

err = AlterAutoRandom(ctx, s.tiGlue.GetSQLExecutor(), "`db`.`table`", uint64(math.MaxInt64)+1, 288230376151711743)
require.NoError(t, err)
}
Expand Down

0 comments on commit 6959514

Please sign in to comment.