diff --git a/bar_test.go b/bar_test.go index 78cedd7..70cb3b7 100644 --- a/bar_test.go +++ b/bar_test.go @@ -237,8 +237,8 @@ p.Wait() - if pCount != 1 { - t.Errorf("Decor called after panic %d times\n", pCount-1) + if pCount > 2 { + t.Error("Decor called after panic more than 2 times\n") } barStr := buf.String()