Skip to content

Commit

Permalink
executor: make TestPointGetReadLock stable (#21624)
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <crazycs520@gmail.com>
  • Loading branch information
crazycs520 authored Dec 10, 2020
1 parent 7007bb5 commit 009c489
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions executor/point_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ func (s *testPointGetSuite) TestPointGetReadLock(c *C) {
c.Assert(ok, IsFalse)

tk.MustExec("unlock tables")
// Force reload schema to ensure the cache is released.
c.Assert(s.dom.Reload(), IsNil)
tk.MustExec("lock tables point read")

rows = tk.MustQuery("explain analyze select * from point where id = 1").Rows()
Expand Down

0 comments on commit 009c489

Please sign in to comment.