diff --git a/beacon_node/http_api/src/test_utils.rs b/beacon_node/http_api/src/test_utils.rs index 0ea8588125..a52df6c863 100644 --- a/beacon_node/http_api/src/test_utils.rs +++ b/beacon_node/http_api/src/test_utils.rs @@ -103,6 +103,13 @@ impl InteractiveTester { tokio::spawn(server); + // Override the default timeout to 2s to timeouts on CI, as CI seems to require longer + // to process. The 1s timeouts for other tasks have been working for a long time, so we'll + // keep it as it is, as it may help identify a performance regression. + let timeouts = Timeouts { + default: Duration::from_secs(2), + ..Timeouts::set_all(Duration::from_secs(1)) + }; let client = BeaconNodeHttpClient::new( SensitiveUrl::parse(&format!( "http://{}:{}", @@ -110,7 +117,7 @@ impl InteractiveTester { listening_socket.port() )) .unwrap(), - Timeouts::set_all(Duration::from_secs(1)), + timeouts, ); Self {