diff --git a/bar_test.go b/bar_test.go index 42451c0..88145d2 100644 --- a/bar_test.go +++ b/bar_test.go @@ -84,34 +84,6 @@ if !strings.Contains(got, wantBar) { t.Errorf("Want bar: %q, got bar: %q\n", wantBar, got) - } -} - -func TestBarHas100PercentWithOnCompleteDecorator(t *testing.T) { - var buf bytes.Buffer - - p := mpb.New(mpb.WithWidth(80), mpb.WithOutput(&buf)) - - total := 50 - - bar := p.AddBar(int64(total), - mpb.AppendDecorators( - decor.OnComplete( - decor.Percentage(), "done", - ), - ), - ) - - for i := 0; i < total; i++ { - bar.Increment() - time.Sleep(10 * time.Millisecond) - } - - p.Wait() - - hundred := "100 %" - if !bytes.Contains(buf.Bytes(), []byte(hundred)) { - t.Errorf("Bar's buffer does not contain: %q\n", hundred) } }