Skip to content

Commit

Permalink
ddl: stabilize test TestAddPrimaryKeyRollback1 (pingcap#21492)
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <[email protected]>
  • Loading branch information
wjhuang2016 authored Dec 4, 2020
1 parent 91a9d30 commit c3fac5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ddl/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ LOOP:
// delete some rows, and add some data
for i := count; i < count+step; i++ {
n := rand.Intn(count)
// Don't delete this row, otherwise error message would change.
if n == defaultBatchSize*2-10 {
continue
}
tk.MustExec("delete from t1 where c1 = ?", n)
tk.MustExec("insert into t1 values (?, ?, ?)", i+10, i, i)
}
Expand Down

0 comments on commit c3fac5a

Please sign in to comment.