Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 authored and ti-chi-bot committed Jan 18, 2023
1 parent 20c3a67 commit 55893d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sessiontxn/txn_rc_tso_optimize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestRcTSOCmdCountForPrepareExecuteNormal(t *testing.T) {
tk.MustExec("commit")
}
countTsoRequest, countTsoUseConstant, countWaitTsoOracle := getAllTsoCounter(sctx)
require.Equal(t, uint64(398), countTsoRequest.(uint64))
require.Equal(t, uint64(496), countTsoRequest.(uint64))
require.Equal(t, uint64(594), countTsoUseConstant.(uint64))
require.Equal(t, uint64(198), countWaitTsoOracle.(uint64))

Expand Down Expand Up @@ -137,7 +137,7 @@ func TestRcTSOCmdCountForPrepareExecuteNormal(t *testing.T) {
tk.MustExec("commit")
}
count := sctx.Value(sessiontxn.TsoRequestCount)
require.Equal(t, uint64(594), count)
require.Equal(t, uint64(693), count)
}

func TestRcTSOCmdCountForPrepareExecuteExtra(t *testing.T) {
Expand Down Expand Up @@ -234,7 +234,7 @@ func TestRcTSOCmdCountForPrepareExecuteExtra(t *testing.T) {
tk.MustExec("commit")
}
countTsoRequest, countTsoUseConstant, countWaitTsoOracle = getAllTsoCounter(sctx)
require.Equal(t, uint64(16), countTsoRequest.(uint64))
require.Equal(t, uint64(20), countTsoRequest.(uint64))
require.Equal(t, uint64(5), countTsoUseConstant.(uint64))
require.Equal(t, uint64(5), countWaitTsoOracle.(uint64))

Expand Down Expand Up @@ -412,7 +412,7 @@ func TestRcTSOCmdCountForPrepareExecuteExtra(t *testing.T) {
require.Nil(t, stmt)
tk.MustExec("commit")
countTsoRequest, countTsoUseConstant, countWaitTsoOracle = getAllTsoCounter(sctx)
require.Equal(t, uint64(3), countTsoRequest.(uint64))
require.Equal(t, uint64(4), countTsoRequest.(uint64))
require.Equal(t, uint64(2), countTsoUseConstant.(uint64))
require.Equal(t, 0, countWaitTsoOracle.(int))
tk.MustQuery("SELECT * FROM t1 WHERE id1 = 1").Check(testkit.Rows("1 1 1"))
Expand Down

0 comments on commit 55893d4

Please sign in to comment.