From f32f61df8759670277818db1de3e8bdd559b3e73 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Mon, 3 Apr 2023 16:56:06 +0300 Subject: [PATCH] [#203] pilorama: Refactor tests Do not pass 0 as channel capacity. Signed-off-by: Dmitrii Stepanov --- pkg/local_object_storage/pilorama/forest_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/pilorama/forest_test.go b/pkg/local_object_storage/pilorama/forest_test.go index ebf801ef9d..bbd35246c6 100644 --- a/pkg/local_object_storage/pilorama/forest_test.go +++ b/pkg/local_object_storage/pilorama/forest_test.go @@ -747,7 +747,7 @@ func testForestTreeParallelApply(t *testing.T, constructor func(t testing.TB, _ actual := constructor(t, WithMaxBatchSize(batchSize)) wg := new(sync.WaitGroup) - ch := make(chan *Move, 0) + ch := make(chan *Move) for i := 0; i < batchSize; i++ { wg.Add(1) go func() {