Skip to content

Commit

Permalink
session: make unit test TestErrorRollback more stable (pingcap#6486)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored and coocood committed May 8, 2018
1 parent 702f210 commit 5ee2853
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func (s *testSessionSuite) TestErrorRollback(c *C) {
go func() {
defer wg.Done()
localTk := testkit.NewTestKitWithInit(c, s.store)
localTk.MustExec("set @@session.tidb_retry_limit = 100")
for j := 0; j < num; j++ {
localTk.Exec("insert into t_rollback values (1, 1)")
localTk.MustExec("update t_rollback set c2 = c2 + 1 where c1 = 0")
Expand Down

0 comments on commit 5ee2853

Please sign in to comment.