[#1318] metabase: Init metabase in test

`Init()` creates buckets. It prevents NPE in tests.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-04-26 22:49:59 +03:00 committed by LeL
parent 486ec8a2e5
commit 9da7df4d42

View file

@ -53,6 +53,7 @@ func newDB(t testing.TB, opts ...meta.Option) *meta.DB {
opts...)...)
require.NoError(t, bdb.Open())
require.NoError(t, bdb.Init())
t.Cleanup(func() {
bdb.Close()