badger tests: fix fd leak.

This commit is contained in:
Raúl Kripalani 2020-11-11 23:12:46 +00:00
parent 04a866121e
commit 72547f9ec3

View File

@ -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) {