forked from TrueCloudLab/frostfs-node
[#945] metabase: Use cleanup instead of defer in tests
Cleanup is more idiomatic way to clean test data Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
e41aba610d
commit
2271944064
13 changed files with 6 additions and 31 deletions
|
@ -12,7 +12,6 @@ import (
|
|||
|
||||
func TestDB_IterateExpired(t *testing.T) {
|
||||
db := newDB(t)
|
||||
defer releaseDB(db)
|
||||
|
||||
const epoch = 13
|
||||
|
||||
|
@ -59,7 +58,6 @@ func putWithExpiration(t *testing.T, db *meta.DB, typ object.Type, expiresAt uin
|
|||
|
||||
func TestDB_IterateCoveredByTombstones(t *testing.T) {
|
||||
db := newDB(t)
|
||||
defer releaseDB(db)
|
||||
|
||||
ts := generateAddress()
|
||||
protected1 := generateAddress()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue