Skip to content

Commit 52eb87d

Browse files
core/vm: update benchmark to use Errorf instead of Sprintf (#24845)
1 parent 91751cb commit 52eb87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/contracts_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func benchmarkPrecompiled(addr string, test precompiledTest, bench *testing.B) {
185185
return
186186
}
187187
if common.Bytes2Hex(res) != test.Expected {
188-
bench.Error(fmt.Sprintf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res)))
188+
bench.Errorf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res))
189189
return
190190
}
191191
})

0 commit comments

Comments
 (0)