forked from TrueCloudLab/frostfs-node
[#868] blobstor: Speed up compression test
Compression test does not require wide blobovnicza tree. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
aba09bb853
commit
cb36f8b50e
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ func TestCompression(t *testing.T) {
|
||||||
newBlobStor := func(t *testing.T, compress bool) *BlobStor {
|
newBlobStor := func(t *testing.T, compress bool) *BlobStor {
|
||||||
bs := New(WithCompressObjects(compress),
|
bs := New(WithCompressObjects(compress),
|
||||||
WithRootPath(dir),
|
WithRootPath(dir),
|
||||||
WithSmallSizeLimit(smallSizeLimit))
|
WithSmallSizeLimit(smallSizeLimit),
|
||||||
|
WithBlobovniczaShallowWidth(1)) // default width is 16, slow init
|
||||||
require.NoError(t, bs.Open())
|
require.NoError(t, bs.Open())
|
||||||
require.NoError(t, bs.Init())
|
require.NoError(t, bs.Init())
|
||||||
return bs
|
return bs
|
||||||
|
|
Loading…
Reference in a new issue