From cb36f8b50e62f32d615a8a1b1f3ee3bba9871268 Mon Sep 17 00:00:00 2001
From: Alex Vanin <alexey@nspcc.ru>
Date: Mon, 15 Nov 2021 13:07:18 +0300
Subject: [PATCH] [#868] blobstor: Speed up compression test

Compression test does not require wide blobovnicza tree.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
---
 pkg/local_object_storage/blobstor/blobstor_test.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/local_object_storage/blobstor/blobstor_test.go b/pkg/local_object_storage/blobstor/blobstor_test.go
index ef67a86a2..9af7956e4 100644
--- a/pkg/local_object_storage/blobstor/blobstor_test.go
+++ b/pkg/local_object_storage/blobstor/blobstor_test.go
@@ -21,7 +21,8 @@ func TestCompression(t *testing.T) {
 	newBlobStor := func(t *testing.T, compress bool) *BlobStor {
 		bs := New(WithCompressObjects(compress),
 			WithRootPath(dir),
-			WithSmallSizeLimit(smallSizeLimit))
+			WithSmallSizeLimit(smallSizeLimit),
+			WithBlobovniczaShallowWidth(1)) // default width is 16, slow init
 		require.NoError(t, bs.Open())
 		require.NoError(t, bs.Init())
 		return bs