diff --git a/progress_test.go b/progress_test.go index b9a35d3..9588548 100644 --- a/progress_test.go +++ b/progress_test.go @@ -112,9 +112,7 @@ } } -// MaxWidthDistributor shouldn't stuck in the middle while removing or aborting a bar func TestMaxWidthDistributor(t *testing.T) { - makeWrapper := func(f func([]chan int), start, end chan struct{}) func([]chan int) { return func(column []chan int) { start <- struct{}{} @@ -126,6 +124,7 @@ ready := make(chan struct{}) start := make(chan struct{}) end := make(chan struct{}) + // mpb.MaxWidthDistributor shouldn't stuck in the middle while removing or aborting a bar mpb.MaxWidthDistributor = makeWrapper(mpb.MaxWidthDistributor, start, end) total := 100