forked from TrueCloudLab/frostfs-node
[#158] metabase: Construct DB using options
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0cd05fdca5
commit
60e4b5ddff
3 changed files with 33 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue