[#203] pilorama: Refactor tests

Do not pass 0 as channel capacity.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
pull/203/head
Dmitrii Stepanov 2023-04-03 16:56:06 +03:00
parent 8908798f59
commit f32f61df87
1 changed files with 1 additions and 1 deletions

View File

@ -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() {