Skip to content

Commit

Permalink
use maxuint64 to get schema info (pingcap#539)
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <you1474600@gmail.com>

Co-authored-by: you06 <you1474600@gmail.com>
Co-authored-by: Neil Shen <overvenus@gmail.com>
  • Loading branch information
3 people authored Oct 9, 2020
1 parent 2308163 commit 59368ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/restore/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *testRestoreClientSuite) TestCreateTables(c *C) {
client, err := restore.NewRestoreClient(context.Background(), gluetidb.New(), s.mock.PDClient, s.mock.Storage, nil)
c.Assert(err, IsNil)

info, err := s.mock.Domain.GetSnapshotInfoSchema(math.MaxInt64)
info, err := s.mock.Domain.GetSnapshotInfoSchema(math.MaxUint64)
c.Assert(err, IsNil)
dbSchema, isExist := info.SchemaByName(model.NewCIStr("test"))
c.Assert(isExist, IsTrue)
Expand Down

0 comments on commit 59368ac

Please sign in to comment.