diff --git a/pkg/lightning/lightning_test.go b/pkg/lightning/lightning_test.go index bbf5e4686..3879e1fb2 100644 --- a/pkg/lightning/lightning_test.go +++ b/pkg/lightning/lightning_test.go @@ -194,8 +194,8 @@ func (s *lightningServerSuite) TestRunServer(c *C) { c.Assert(taskCfg.TiDB.Host, Equals, "test.invalid") c.Assert(taskCfg.Mydumper.SourceDir, Equals, fmt.Sprintf("file://demo-path-%d", i)) c.Assert(taskCfg.Mydumper.CSV.Separator, Equals, "/") - case <-time.After(500 * time.Millisecond): - c.Fatalf("task is not queued after 500ms (i = %d)", i) + case <-time.After(1500 * time.Millisecond): + c.Fatalf("task is not queued after 1500ms (i = %d)", i) } } } diff --git a/tests/lightning_checkpoint/run.sh b/tests/lightning_checkpoint/run.sh index 95c759751..d2289b414 100755 --- a/tests/lightning_checkpoint/run.sh +++ b/tests/lightning_checkpoint/run.sh @@ -57,7 +57,7 @@ for i in $(seq "$TABLE_COUNT"); do done PARTIAL_IMPORT_QUERY="SELECT *, $OUTER_QUERY AS s FROM (SELECT $INNER_QUERY) _" -for BACKEND in importer tidb local; do +for BACKEND in importer local; do if [ "$BACKEND" = 'local' ]; then check_cluster_version 4 0 0 'local backend' || continue fi