Skip to content

Commit

Permalink
core/vm: update benchmark to use Errorf instead of Sprintf (#24845)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald authored and unclezoro committed Sep 21, 2022
1 parent 5d980a0 commit 4feeaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/contracts_test.go
Expand Up @@ -185,7 +185,7 @@ func benchmarkPrecompiled(addr string, test precompiledTest, bench *testing.B) {
return
}
if common.Bytes2Hex(res) != test.Expected {
bench.Error(fmt.Sprintf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res)))
bench.Errorf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res))
return
}
})
Expand Down

0 comments on commit 4feeaf3

Please sign in to comment.