Skip to content

Commit

Permalink
Add a comment for the test timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato committed May 20, 2021
1 parent af8b9d3 commit 18e8d8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions executor/stale_txn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func (s *testStaleTxnSerialSuite) TestStalenessAndHistoryRead(c *C) {
// set @@tidb_snapshot before staleness txn
tk.MustExec(`set @@tidb_snapshot="2016-10-08 16:45:26";`)
tk.MustExec(`START TRANSACTION READ ONLY AS OF TIMESTAMP '2020-09-06 00:00:00';`)
// 1599321600000 == 2020-09-06 00:00:00
c.Assert(oracle.ExtractPhysical(tk.Se.GetSessionVars().TxnCtx.StartTS), Equals, int64(1599321600000))
tk.MustExec("commit")
// set @@tidb_snapshot during staleness txn
Expand Down

0 comments on commit 18e8d8b

Please sign in to comment.