diff --git a/bar_test.go b/bar_test.go index f5505cd..d22a36f 100644 --- a/bar_test.go +++ b/bar_test.go @@ -48,7 +48,7 @@ t.Errorf("Expected bar id: %d, got %d\n", wantID, gotID) } - p.Abort(bar) + p.Abort(bar, true) p.Wait() } diff --git a/examples/remove/main.go b/examples/remove/main.go index bc9c738..9bfd4f3 100644 --- a/examples/remove/main.go +++ b/examples/remove/main.go @@ -43,7 +43,7 @@ for i := 0; i < total; i++ { start := time.Now() if b.ID() == 2 && i == 42 { - p.Abort(b) + p.Abort(b, true) return } time.Sleep(time.Duration(rand.Intn(10)+1) * max / 10) diff --git a/progress_test.go b/progress_test.go index 2f32af3..0c4388c 100644 --- a/progress_test.go +++ b/progress_test.go @@ -45,7 +45,7 @@ t.Errorf("BarCount want: %q, got: %q\n", 1, count) } - p.Abort(b) + p.Abort(b, true) p.Wait() } @@ -61,7 +61,7 @@ go func(n int) { for i := 0; i < 100; i++ { if n == 0 && i == 33 { - p.Abort(b) + p.Abort(b, true) wg.Done() } b.Increment() @@ -75,8 +75,8 @@ if count != 2 { t.Errorf("BarCount want: %q, got: %q\n", 2, count) } - p.Abort(bars[1]) - p.Abort(bars[2]) + p.Abort(bars[1], true) + p.Abort(bars[2], true) p.Wait() } @@ -120,7 +120,7 @@ for i := 0; i < 100; i++ { if i == 33 { - p.Abort(bar) + p.Abort(bar, true) break } time.Sleep(randomDuration(100 * time.Millisecond))