mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/storage/localstore: close localstore in two tests
This commit is contained in:
parent
fbedf62f3d
commit
c580854f35
2 changed files with 2 additions and 0 deletions
|
|
@ -290,6 +290,7 @@ func TestDB_gcSize(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
t.Run("gc index size", newIndexGCSizeTest(db))
|
||||
|
||||
|
|
|
|||
|
|
@ -163,6 +163,7 @@ func BenchmarkNew(b *testing.B) {
|
|||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
defer db.Close()
|
||||
uploader := db.NewPutter(ModePutUpload)
|
||||
syncer := db.NewSetter(ModeSetSync)
|
||||
for i := 0; i < count; i++ {
|
||||
|
|
|
|||
Loading…
Reference in a new issue