Skip to content

Commit

Permalink
fix data race in test
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 committed Jun 18, 2019
1 parent f5c3df1 commit defcb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddl/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2959,7 +2959,7 @@ func (s *testDBSuite2) TestLockTables(c *C) {
}

// TestConcurrentLockTables test concurrent lock/unlock tables.
func (s *testDBSuite4) TestConcurrentLockTables(c *C) {
func (s *testDBSuite2) TestConcurrentLockTables(c *C) {
s.tk = testkit.NewTestKit(c, s.store)
tk2 := testkit.NewTestKit(c, s.store)
tk := s.tk
Expand Down Expand Up @@ -3010,7 +3010,7 @@ func (s *testDBSuite4) TestConcurrentLockTables(c *C) {
tk2.MustExec("unlock tables")
}

func (s *testDBSuite4) testParallelExecSQL(c *C, sql1, sql2 string, se1, se2 session.Session, f checkRet) {
func (s *testDBSuite2) testParallelExecSQL(c *C, sql1, sql2 string, se1, se2 session.Session, f checkRet) {
callback := &ddl.TestDDLCallback{}
times := 0
callback.OnJobRunBeforeExported = func(job *model.Job) {
Expand Down

0 comments on commit defcb0a

Please sign in to comment.