diff --git a/progress_test.go b/progress_test.go index cec2ed0..a46cd6a 100644 --- a/progress_test.go +++ b/progress_test.go @@ -151,11 +151,9 @@ func TestCustomFormat(t *testing.T) { var buf bytes.Buffer cancel := make(chan struct{}) - shutdown := make(chan struct{}) customFormat := "╢▌▌░╟" p := mpb.New().Format(customFormat). WithCancel(cancel). - ShutdownNotify(shutdown). SetOut(&buf) bar := p.AddBar(100).TrimLeftSpace().TrimRightSpace() @@ -166,7 +164,7 @@ } }() - time.Sleep(300 * time.Millisecond) + time.Sleep(250 * time.Millisecond) close(cancel) p.Stop()