From 9680cd57b2635996816ea1bf472bc035cd19f436 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 12 Jun 2024 20:11:47 +0300 Subject: [PATCH] engine: fix `TestEvacuateShard` It looks like on a slow (few-core?) machine put operation can be failed because the internal pool has not been freed from the previous iteration (another shard is tried then and additional "fake" relocation is detected in the test). Closes #2860. Signed-off-by: Pavel Karpy --- pkg/local_object_storage/engine/evacuate_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/engine/evacuate_test.go b/pkg/local_object_storage/engine/evacuate_test.go index 29563217f5..8bd45879a0 100644 --- a/pkg/local_object_storage/engine/evacuate_test.go +++ b/pkg/local_object_storage/engine/evacuate_test.go @@ -28,7 +28,7 @@ func newEngineEvacuate(t *testing.T, shardNum int, objPerShard int) (*StorageEng e := New( WithLogger(zaptest.NewLogger(t)), - WithShardPoolSize(1)) + WithShardPoolSize(uint32(objPerShard))) ids := make([]*shard.ID, shardNum)