Skip to content

Commit 01ea298

Browse files
committed
Add --rpc-max-response-size to spawned test node
... in `follow_chain.rs` test, and also increase waiting time for node's warm-up.
1 parent ce7c011 commit 01ea298

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/tests/follow_chain.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ async fn follow_chain_works() {
3535
"--no-hardware-benchmarks",
3636
"--dev",
3737
format!("--rpc-port={}", port).as_str(),
38+
"--no-telemetry",
39+
"--no-prometheus",
40+
"--rpc-max-response-size=1000", // Allow large RPC responses for snapshot creation
3841
]) {
3942
Ok(_) => {}
4043
Err(e) => {
@@ -43,7 +46,7 @@ async fn follow_chain_works() {
4346
}
4447
});
4548
// Wait some time to ensure the node is warmed up.
46-
std::thread::sleep(Duration::from_secs(90));
49+
std::thread::sleep(Duration::from_secs(180));
4750

4851
common::run_with_timeout(Duration::from_secs(60), async move {
4952
fn start_follow(ws_url: &str) -> tokio::process::Child {

0 commit comments

Comments
 (0)