Skip to content

Commit

Permalink
ddl: fix data race about ReorgWaitTimeout in tests (pingcap#9483)
Browse files Browse the repository at this point in the history
* ddl: fix data race about ReorgWaitTimeout in tests
  • Loading branch information
zimulala authored Feb 28, 2019
1 parent c71a391 commit 0c97db8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ddl/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,6 @@ func (s *testDBSuite) TestCancelDropTableAndSchema(c *C) {
{true, model.ActionDropSchema, model.JobStateRunning, model.StateDeleteOnly, false},
}
var checkErr error
oldReorgWaitTimeout := ddl.ReorgWaitTimeout
ddl.ReorgWaitTimeout = 50 * time.Millisecond
defer func() { ddl.ReorgWaitTimeout = oldReorgWaitTimeout }()
hook := &ddl.TestDDLCallback{}
var jobID int64
testCase := &testCases[0]
Expand Down Expand Up @@ -1099,9 +1096,6 @@ func (s *testDBSuite) TestCancelDropColumn(c *C) {
{true, model.JobStateRunning, model.StateDeleteReorganization, false},
}
var checkErr error
oldReorgWaitTimeout := ddl.ReorgWaitTimeout
ddl.ReorgWaitTimeout = 50 * time.Millisecond
defer func() { ddl.ReorgWaitTimeout = oldReorgWaitTimeout }()
hook := &ddl.TestDDLCallback{}
var jobID int64
testCase := &testCases[0]
Expand Down

0 comments on commit 0c97db8

Please sign in to comment.