forked from TrueCloudLab/frostfs-node
[#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:
parent
486ec8a2e5
commit
9da7df4d42
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ func newDB(t testing.TB, opts ...meta.Option) *meta.DB {
|
||||||
opts...)...)
|
opts...)...)
|
||||||
|
|
||||||
require.NoError(t, bdb.Open())
|
require.NoError(t, bdb.Open())
|
||||||
|
require.NoError(t, bdb.Init())
|
||||||
|
|
||||||
t.Cleanup(func() {
|
t.Cleanup(func() {
|
||||||
bdb.Close()
|
bdb.Close()
|
||||||
|
|
Loading…
Reference in a new issue