Skip to content

Commit

Permalink
executor: stable tests
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox committed Jun 16, 2021
1 parent 9461f5b commit b3d7b0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion executor/batch_point_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ func (s *testBatchPointGetSuite) TestBatchPointGetIssue25167(c *C) {
defer func() {
tk.MustExec("drop table if exists t")
}()
tk.MustExec("set @a=(select current_timestamp(6))")
time.Sleep(50 * time.Millisecond)
tk.MustExec("set @a=(select current_timestamp(3))")
tk.MustExec("insert into t values (1)")
tk.MustQuery("select * from t as of timestamp @a where a in (1,2,3)").Check(testkit.Rows())
}
3 changes: 2 additions & 1 deletion executor/point_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,8 @@ func (s *testPointGetSuite) TestPointGetIssue25167(c *C) {
defer func() {
tk.MustExec("drop table if exists t")
}()
tk.MustExec("set @a=(select current_timestamp(6))")
time.Sleep(50 * time.Millisecond)
tk.MustExec("set @a=(select current_timestamp(3))")
tk.MustExec("insert into t values (1)")
tk.MustQuery("select * from t as of timestamp @a where a = 1").Check(testkit.Rows())
}

0 comments on commit b3d7b0e

Please sign in to comment.