Skip to content

Commit ce7c56c

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 f9622e9 commit ce7c56c

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
@@ -88,8 +88,9 @@ async fn pa_instance(
8888
) -> protocol_adapter::ProtocolAdapter::ProtocolAdapterInstance<DynProvider> {
8989
let rpc_url = alchemy_url(chain).expect("Couldn't get RPC URL for chain");
9090

91+
// Raise anvil's 10s fork-startup default; slow RPCs Timeout as chains grow.
9192
let provider = ProviderBuilder::new()
92-
.connect_anvil_with_wallet_and_config(|a| a.fork(rpc_url))
93+
.connect_anvil_with_wallet_and_config(|a| a.fork(rpc_url).timeout(120_000))
9394
.expect("Couldn't create anvil provider");
9495
protocol_adapter(&provider.erased())
9596
.await

0 commit comments

Comments
 (0)