Skip to content

Commit

Permalink
revert 272f9ec
Browse files Browse the repository at this point in the history
  • Loading branch information
longfangsong committed Aug 24, 2021
1 parent 272f9ec commit 57ba0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4486,7 +4486,7 @@ func (s *testTxnStateSerialSuite) TestRunning(c *C) {
tk.MustExec("create table t(a int);")
tk.MustExec("insert into t(a) values (1);")
tk.MustExec("begin pessimistic;")
c.Assert(failpoint.Enable("github.com/pingcap/tidb/session/beforeLockKeys", "pause"), IsNil)
c.Assert(failpoint.Enable("github.com/pingcap/tidb/session/mockStmtSlow", "pause"), IsNil)
ch := make(chan struct{})
go func() {
tk.MustExec("select * from t for update;")
Expand All @@ -4496,7 +4496,7 @@ func (s *testTxnStateSerialSuite) TestRunning(c *C) {
time.Sleep(100 * time.Millisecond)
info := tk.Se.TxnInfo()
c.Assert(info.State, Equals, txninfo.TxnRunning)
c.Assert(failpoint.Disable("github.com/pingcap/tidb/session/beforeLockKeys"), IsNil)
c.Assert(failpoint.Disable("github.com/pingcap/tidb/session/mockStmtSlow"), IsNil)
<-ch
}

Expand Down

0 comments on commit 57ba0c3

Please sign in to comment.