Skip to content

Commit

Permalink
use maxuint64 to get schema info (pingcap#526)
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <[email protected]>
  • Loading branch information
you06 authored Sep 28, 2020
1 parent b9ebeb8 commit e9fc669
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 @@ -42,7 +42,7 @@ func (s *testRestoreClientSuite) TestCreateTables(c *C) {
client, err := restore.NewRestoreClient(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 e9fc669

Please sign in to comment.