Skip to content

Commit

Permalink
executor: Fix unstable TestTiDBLastTxnInfoCommitMode (#24779) (#25160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Jun 4, 2021
1 parent 5489cd8 commit 4abe755
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 4abe755

Please sign in to comment.