Skip to content

Commit

Permalink
ddl: make ddl test more stable (#11790)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and ngaut committed Aug 20, 2019
1 parent 9eaa1cc commit f93b392
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ddl/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4374,7 +4374,14 @@ func (s *testDBSuite) TestDropSchemaWithPartitionTable(c *C) {
})

// check records num after drop database.
recordsNum = getPartitionTableRecordsNum(c, ctx, tbl.(table.PartitionedTable))
for i := 0; i < waitForCleanDataRound; i++ {
recordsNum = getPartitionTableRecordsNum(c, ctx, tbl.(table.PartitionedTable))
if recordsNum != 0 {
time.Sleep(waitForCleanDataInterval)
} else {
break
}
}
c.Assert(recordsNum, Equals, 0)
}

Expand Down

0 comments on commit f93b392

Please sign in to comment.