Skip to content

Commit 3338221

Browse files
authored
cmd/evm/testdata/evmrun: fix flaky benchmark duration regex (#35560)
Fixes a flaky benchmark-output test. Here is an example of it failing: https://github.com/ethereum/go-ethereum/actions/runs/32334412685/job/96322388380?pr=35440 The expected-output regex previously required a fractional component, causing the test to fail intermittently when the duration was a whole number. This change makes that component optional, accepting both `73µs` and `73.001µs`.
1 parent 560610a commit 3338221

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
EVM gas used: \d+
2-
execution time: \d+\.\d+.s
2+
execution time: \d+(\.\d+)?.s
33
allocations: \d+
44
allocated bytes: \d+

0 commit comments

Comments
 (0)