Skip to content

Commit

Permalink
Get rid of parallel benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyonlin committed Oct 14, 2020
1 parent 34a9d2f commit a94e500
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ansi/buffer_test.go
Expand Up @@ -21,11 +21,9 @@ func BenchmarkPrintableRuneWidth(b *testing.B) {

b.ReportAllocs()
b.ResetTimer()
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
n = PrintableRuneWidth(s)
}
})
for i := 0; i < b.N; i++ {
n = PrintableRuneWidth(s)
}

if n != 3 {
b.Fatalf("width should be 3, got %d", n)
Expand Down

0 comments on commit a94e500

Please sign in to comment.