From d19b7c8fbaf71df2bc2c7c9ffab554125aa84a47 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Fri, 26 May 2023 15:00:45 +0800 Subject: [PATCH] test: fix 'loadMetaPage' always read the first meta page Signed-off-by: Benjamin Wang --- cmd/bbolt/utils_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bbolt/utils_test.go b/cmd/bbolt/utils_test.go index 5ea11b2..7a7fc7c 100644 --- a/cmd/bbolt/utils_test.go +++ b/cmd/bbolt/utils_test.go @@ -11,7 +11,7 @@ import ( ) func loadMetaPage(t *testing.T, dbPath string, pageID uint64) *common.Meta { - _, buf, err := guts_cli.ReadPage(dbPath, 0) + _, buf, err := guts_cli.ReadPage(dbPath, pageID) require.NoError(t, err) return common.LoadPageMeta(buf) }