From e9fc669f18ea2f23dee44e510f0f4a52ecc05685 Mon Sep 17 00:00:00 2001 From: you06 Date: Mon, 28 Sep 2020 13:19:44 +0800 Subject: [PATCH] use maxuint64 to get schema info (#526) Signed-off-by: you06 --- pkg/restore/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/restore/client_test.go b/pkg/restore/client_test.go index 1bac5843dce5a..4a52ba9376207 100644 --- a/pkg/restore/client_test.go +++ b/pkg/restore/client_test.go @@ -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)