diff --git a/barbench_test.go b/barbench_test.go index 53a8141..f5086f2 100644 --- a/barbench_test.go +++ b/barbench_test.go @@ -8,7 +8,7 @@ ) func BenchmarkIncrSingleBar(b *testing.B) { - p := New(WithOutput(ioutil.Discard)) + p := New(WithOutput(ioutil.Discard), WithWidth(80)) bar := p.AddBar(int64(b.N)) for i := 0; i < b.N; i++ { bar.Increment() @@ -16,7 +16,7 @@ } func BenchmarkIncrSingleBarWhileIsNotCompleted(b *testing.B) { - p := New(WithOutput(ioutil.Discard)) + p := New(WithOutput(ioutil.Discard), WithWidth(80)) bar := p.AddBar(int64(b.N)) for !bar.Completed() { bar.Increment() @@ -24,7 +24,7 @@ } func BenchmarkIncrSingleBarWithNameDecorator(b *testing.B) { - p := New(WithOutput(ioutil.Discard)) + p := New(WithOutput(ioutil.Discard), WithWidth(80)) bar := p.AddBar(int64(b.N), PrependDecorators(decor.Name("test"))) for i := 0; i < b.N; i++ { bar.Increment() @@ -32,7 +32,7 @@ } func BenchmarkIncrSingleBarWithNameAndEwmaETADecorator(b *testing.B) { - p := New(WithOutput(ioutil.Discard)) + p := New(WithOutput(ioutil.Discard), WithWidth(80)) bar := p.AddBar(int64(b.N), PrependDecorators(decor.Name("test")), AppendDecorators(decor.EwmaETA(decor.ET_STYLE_GO, 60)),