fix windows tests

This commit is contained in:
alex.sharov 2022-02-22 14:44:57 +07:00
parent f5da8833b6
commit d3c8634df8

View File

@ -30,6 +30,7 @@ func createTestSegmentFile(t *testing.T, from, to uint64, name SnapshotType, dir
LeafSize: 8,
})
require.NoError(t, err)
defer idx.Close()
err = idx.AddKey([]byte{1}, 0)
require.NoError(t, err)
err = idx.Build()
@ -47,6 +48,7 @@ func createTestSegmentFile(t *testing.T, from, to uint64, name SnapshotType, dir
require.NoError(t, err)
err = idx.Build()
require.NoError(t, err)
defer idx.Close()
}
}