Skip to content

Commit

Permalink
ddl: remove the useless test to make TestCheckOwner more stable (ping…
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored Feb 6, 2017
1 parent 5b84277 commit 6f8fc91
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ddl/ddl_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ func (s *testDDLSuite) TestCheckOwner(c *C) {
testCheckOwner(c, d1, true, ddlJobFlag)
testCheckOwner(c, d1, true, bgJobFlag)

// Start a new DDL and the DDL owner is still d1.
d2 := newDDL(store, nil, nil, testLease)
defer d2.Stop()
testCheckOwner(c, d2, false, ddlJobFlag)
testCheckOwner(c, d2, false, bgJobFlag)

// Change the DDL owner.
d1.Stop()
Expand Down

0 comments on commit 6f8fc91

Please sign in to comment.