core/vm: update benchmark to use Errorf instead of Sprintf (#24845)

pull/24849/head
aaronbuchwald 3 years ago committed by GitHub
parent 91751cbaa7
commit 52eb87d87c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/vm/contracts_test.go

@ -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
}
})

Loading…
Cancel
Save