From ab891517de1a1a34c565bb3c59e0e1cf4eac6515 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Wed, 5 Apr 2023 18:47:11 +0300 Subject: [PATCH] [#116] node: Fix bug with extra generated files in TestReload * Create testNewEngine in engineWithShards without default opts Signed-off-by: Airat Arifullin a.arifullin@yadro.com --- pkg/local_object_storage/engine/control_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/local_object_storage/engine/control_test.go b/pkg/local_object_storage/engine/control_test.go index 2c44eb169..12771340b 100644 --- a/pkg/local_object_storage/engine/control_test.go +++ b/pkg/local_object_storage/engine/control_test.go @@ -25,6 +25,7 @@ import ( "github.com/stretchr/testify/require" "go.etcd.io/bbolt" "go.uber.org/atomic" + "go.uber.org/zap" "go.uber.org/zap/zaptest" ) @@ -321,8 +322,9 @@ func engineWithShards(t *testing.T, path string, num int) (*StorageEngine, []str currShards := make([]string, 0, num) te := testNewEngine(t). - setShardsNumAdditionalOpts(t, num, func(id int) []shard.Option { + setShardsNumOpts(t, num, func(id int) []shard.Option { return []shard.Option{ + shard.WithLogger(&logger.Logger{Logger: zap.L()}), shard.WithBlobStorOptions( blobstor.WithStorages(newStorages(filepath.Join(addPath, strconv.Itoa(id)), errSmallSize))), shard.WithMetaBaseOptions(