diff --git a/common/hexutil/hexutil_test.go b/common/hexutil/hexutil_test.go index f2b800d82c..814eac896a 100644 --- a/common/hexutil/hexutil_test.go +++ b/common/hexutil/hexutil_test.go @@ -207,7 +207,7 @@ func BenchmarkEncodeBig(b *testing.B) { b.Run(bench.want, func(b *testing.B) { b.ReportAllocs() bigint := bench.input.(*big.Int) - for i := 0; i < b.N; i++ { + for range b.Loop() { EncodeBig(bigint) } })