Skip to content

test(bindings): raise anvil fork startup timeout to 120s#547

Open
jonaprieto wants to merge 1 commit into
next-bindingsfrom
refactor/bindings-tests-anvil-timeout
Open

test(bindings): raise anvil fork startup timeout to 120s#547
jonaprieto wants to merge 1 commit into
next-bindingsfrom
refactor/bindings-tests-anvil-timeout

Conversation

@jonaprieto

@jonaprieto jonaprieto commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The bindings tests fork a node per chain. Unlike the generic-call-forwarder fix (#26), these can't drop forking: the protocol adapter constructor calls into the risc0 verifier router (isEmergencyStopped), and the execute test sends a real transaction against the deployed adapter, both of which need a forked node.

Anvil only reports ready after it fetches fork state from the RPC, so a slow or rate-limited RPC blows past anvil's 10s startup default and the test panics with Timeout (and it gets worse as chains are added). Raise the fork startup timeout to 120s.

@jonaprieto jonaprieto self-assigned this Jul 2, 2026
The bindings tests fork a node per chain. The protocol adapter constructor
calls into the risc0 verifier router and the execute test sends a real
transaction, so a forked node is required here and cannot be swapped for a
plain HTTP provider. Anvil only reports ready once it has fetched fork state
from the RPC; over a slow or rate-limited RPC that exceeds anvil's 10s startup
default and the test panics with `Timeout`, and it worsens as chains are added.

Raise the startup timeout to 120s.
@jonaprieto jonaprieto force-pushed the refactor/bindings-tests-anvil-timeout branch from 064d195 to bab2989 Compare July 2, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant