Skip to content

Commit 45c644c

Browse files
committed
core/vm: update benchmark to use Errorf instead of Sprintf (ethereum#24845)
1 parent 6fa9682 commit 45c644c

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
@@ -618,7 +618,7 @@ func benchmarkPrecompiled(addr string, test precompiledTest, bench *testing.B) {
618618
return
619619
}
620620
if common.Bytes2Hex(res) != test.expected {
621-
bench.Error(fmt.Sprintf("Expected %v, got %v", test.expected, common.Bytes2Hex(res)))
621+
bench.Errorf("Expected %v, got %v", test.expected, common.Bytes2Hex(res))
622622
return
623623
}
624624
})

0 commit comments

Comments
 (0)