[#203] pilorama: Refactor tests

Do not pass 0 as channel capacity.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-04-03 16:56:06 +03:00
parent 8908798f59
commit f32f61df87

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