Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
test: fix unstable integration test lightning_checkpoint (#1006) (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Apr 15, 2021
1 parent b47663f commit 83bea10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/lightning/lightning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lightning_checkpoint/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83bea10

Please sign in to comment.