Skip to content

Commit f4e32f1

Browse files
committed
test(bindings): raise anvil fork startup timeout to 120s
Bindings tests fork one anvil per deployed chain; a slow or rate-limited RPC blows past anvil's 10s startup default and panics with `Timeout`, worsening as chains are added. Raise the fork startup timeout to 120s.
1 parent 7af4a98 commit f4e32f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bindings/tests/contract.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ async fn pa_instance(
7474
) -> protocol_adapter::ProtocolAdapter::ProtocolAdapterInstance<DynProvider> {
7575
let rpc_url = rpc_url(chain).expect("Couldn't get RPC URL for chain");
7676

77+
// Raise anvil's 10s fork-startup default; slow RPCs Timeout as chains grow.
7778
let provider = ProviderBuilder::new()
78-
.connect_anvil_with_wallet_and_config(|a| a.fork(rpc_url))
79+
.connect_anvil_with_wallet_and_config(|a| a.fork(rpc_url).timeout(120_000))
7980
.expect("Couldn't create anvil provider");
8081
protocol_adapter(&provider.erased())
8182
.await

0 commit comments

Comments
 (0)