[#158] metabase: Construct DB using options

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-09 13:14:52 +03:00 committed by Alex Vanin
parent 0cd05fdca5
commit 60e4b5ddff
3 changed files with 33 additions and 7 deletions

View file

@ -220,7 +220,7 @@ func TestDB_Path(t *testing.T) {
bdb, err := bbolt.Open(path, 0600, nil)
require.NoError(t, err)
db := NewDB(bdb)
db := NewDB(FromBoltDB(bdb))
defer releaseDB(db)
@ -233,7 +233,7 @@ func newDB(t testing.TB) *DB {
bdb, err := bbolt.Open(path, 0600, nil)
require.NoError(t, err)
return NewDB(bdb)
return NewDB(FromBoltDB(bdb))
}
func releaseDB(db *DB) {