[#1318] metabase: Init metabase in test

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

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/neofs-adm-nns
Pavel Karpy 2022-04-26 22:49:59 +03:00 committed by LeL
parent 486ec8a2e5
commit 9da7df4d42
1 changed files with 1 additions and 0 deletions

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()