Skip to content

Commit

Permalink
ddl: make ddl test more stable (#12503)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 committed Oct 8, 2019
1 parent 930b852 commit bf10a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ddl/table_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package ddl_test
import (
"context"
"sync/atomic"
"time"

. "github.com/pingcap/check"
"github.com/pingcap/parser/model"
Expand All @@ -35,7 +36,7 @@ func (s *testDDLTableSplitSuite) TestTableSplit(c *C) {
store, err := mockstore.NewMockTikvStore()
c.Assert(err, IsNil)
defer store.Close()
session.SetSchemaLease(0)
session.SetSchemaLease(100 * time.Millisecond)
session.DisableStats4Test()
atomic.StoreUint32(&ddl.EnableSplitTableRegion, 1)
dom, err := session.BootstrapSession(store)
Expand Down

0 comments on commit bf10a7a

Please sign in to comment.