mirror of https://github.com/etcd-io/bbolt.git
test: fix 'loadMetaPage' always read the first meta page
Signed-off-by: Benjamin Wang <wachao@vmware.com>pull/515/head
parent
3fd1022a0a
commit
d19b7c8fba
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue