From f8a0e2794d9fece0fdba8b202350c3f6f2752007 Mon Sep 17 00:00:00 2001 From: Lynn Date: Tue, 18 May 2021 11:26:10 +0800 Subject: [PATCH] ddl: speed up the execution time of `TestBackwardCompatibility`. --- ddl/db_integration_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ddl/db_integration_test.go b/ddl/db_integration_test.go index 405ada57f15ec..5bd8240a82637 100644 --- a/ddl/db_integration_test.go +++ b/ddl/db_integration_test.go @@ -1234,7 +1234,7 @@ func (s *testIntegrationSuite5) TestBackwardCompatibility(c *C) { // Split the table. tableStart := tablecodec.GenTableRecordPrefix(tbl.Meta().ID) - s.cluster.SplitKeys(tableStart, tableStart.PrefixNext(), 100) + s.cluster.SplitKeys(tableStart, tableStart.PrefixNext(), 10) unique := false indexName := model.NewCIStr("idx_b") @@ -1276,7 +1276,6 @@ func (s *testIntegrationSuite5) TestBackwardCompatibility(c *C) { historyJob, err := getHistoryDDLJob(s.store, job.ID) c.Assert(err, IsNil) if historyJob == nil { - continue } c.Assert(historyJob.Error, IsNil)