Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Dec 23, 2020
1 parent 449ed1a commit 5bea642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion lightning/restore/tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ loopCreate:
)
failpoint.Inject("sqlCreateStmts", func() {
err = errors.Errorf("create %s failed", tbl)
failpoint.Return()
})
if err != nil {
break loopCreate
Expand Down
3 changes: 2 additions & 1 deletion lightning/restore/tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ func (s *tidbSuite) TestInitSchemaErrorLost(c *C) {
"t2": "create table t2 (a int primary key, b varchar(200));",
})
failpoint.Disable("github.com/pingcap/tidb-lightning/lightning/restore/sqlCreateStmts")
c.Assert(err, ErrorMatches, "create failed")
// cannot predict which table will failed since map is unorder.
c.Assert(err, ErrorMatches, "create (.*) failed")
}

func (s *tidbSuite) TestInitSchemaUnsupportedSchemaError(c *C) {
Expand Down

0 comments on commit 5bea642

Please sign in to comment.