mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
core/vm: update benchmark to use Errorf instead of Sprintf (#24845)
This commit is contained in:
parent
6fa968201f
commit
45c644c43d
1 changed files with 1 additions and 1 deletions
|
|
@ -618,7 +618,7 @@ func benchmarkPrecompiled(addr string, test precompiledTest, bench *testing.B) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if common.Bytes2Hex(res) != test.expected {
|
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
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue