Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <314806019@qq.com>
  • Loading branch information
AilinKid committed Aug 3, 2020
1 parent 99f52ba commit fa9cae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddl/ddl_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,21 +872,21 @@ func (s *testDDLSuite) TestCancelJob(c *C) {
testCreateTable(c, ctx, d, dbInfo, baseTableInfo)

cancelState = model.StateNone
updateTest(&tests[45])
updateTest(&tests[34])
addedPartInfo := testAddedNewTablePartitionInfo(c, d, baseTableInfo, "p1", "maxvalue")
addPartitionArgs := []interface{}{addedPartInfo}
doDDLJobErrWithSchemaState(ctx, d, c, dbInfo.ID, baseTableInfo.ID, test.act, addPartitionArgs, &cancelState)
c.Check(checkErr, IsNil)
baseTable := testGetTable(c, d, dbInfo.ID, baseTableInfo.ID)
c.Assert(len(baseTable.Meta().Partition.Definitions), Equals, 1)

updateTest(&tests[46])
updateTest(&tests[35])
doDDLJobErrWithSchemaState(ctx, d, c, dbInfo.ID, baseTableInfo.ID, test.act, addPartitionArgs, &cancelState)
c.Check(checkErr, IsNil)
baseTable = testGetTable(c, d, dbInfo.ID, baseTableInfo.ID)
c.Assert(len(baseTable.Meta().Partition.Definitions), Equals, 1)

updateTest(&tests[47])
updateTest(&tests[36])
doDDLJobSuccess(ctx, d, c, dbInfo.ID, baseTableInfo.ID, test.act, addPartitionArgs)
c.Check(checkErr, IsNil)
baseTable = testGetTable(c, d, dbInfo.ID, baseTableInfo.ID)
Expand Down

0 comments on commit fa9cae5

Please sign in to comment.