Skip to content

Commit

Permalink
badger tests: fix fd leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Nov 11, 2020
1 parent 04a8661 commit 72547f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/blockstore/badger/blockstore_test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ func (s *Suite) TestReopenPutGet(t *testing.T) {
fetched, err := bs.Get(orig.Cid())
require.NoError(t, err)
require.Equal(t, orig.RawData(), fetched.RawData())

err = bs.(io.Closer).Close()
require.NoError(t, err)
}

func (s *Suite) TestPutMany(t *testing.T) {
Expand Down

0 comments on commit 72547f9

Please sign in to comment.