Skip to content

Commit

Permalink
cherry pick pingcap#24779 to release-5.0
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
MyonKeminta authored and ti-srebot committed Jun 4, 2021
1 parent 0ecd6bd commit a94f072
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3056,9 +3056,10 @@ func (s *testSerialSuite) TestTiDBLastTxnInfoCommitMode(c *C) {
c.Assert(rows[0][1], Equals, "false")
c.Assert(rows[0][2], Equals, "false")

config.UpdateGlobal(func(conf *config.Config) {
conf.TiKVClient.AsyncCommit.SafeWindow = 0
})
c.Assert(failpoint.Enable("github.com/pingcap/tidb/store/tikv/invalidMaxCommitTS", "return"), IsNil)
defer func() {
c.Assert(failpoint.Disable("github.com/pingcap/tidb/store/tikv/invalidMaxCommitTS"), IsNil)
}()

tk.MustExec("set @@tidb_enable_async_commit = 1")
tk.MustExec("set @@tidb_enable_1pc = 0")
Expand Down

0 comments on commit a94f072

Please sign in to comment.