Skip to content

Commit

Permalink
executor: stable tests (#25495)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhebox authored Jun 16, 2021
1 parent 3c97912 commit b43f24f
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 b43f24f

Please sign in to comment.