diff --git a/proxywriter_test.go b/proxywriter_test.go index aafc6bc..6089d68 100644 --- a/proxywriter_test.go +++ b/proxywriter_test.go @@ -25,7 +25,7 @@ var buf bytes.Buffer tw := &testWriter{&buf, false} - bar := p.AddBar(int64(len(content))) + bar := p.New(int64(len(content)), mpb.NopStyle()) _, err := io.Copy(bar.ProxyWriter(tw), strings.NewReader(content)) if err != nil { @@ -59,7 +59,7 @@ var buf bytes.Buffer tw := &testWriteCloser{&buf, false} - bar := p.AddBar(int64(len(content))) + bar := p.New(int64(len(content)), mpb.NopStyle()) wc := bar.ProxyWriter(tw) _, err := io.Copy(wc, strings.NewReader(content))