From 8ec2fc7dee6ca26d457c3b2e9f5ec606969d726a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Tue, 10 Sep 2024 11:00:27 +0200 Subject: [PATCH] cctl: add timeout after awaiting block 1 to address flakyness --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 85e683d..8d677b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -221,7 +221,10 @@ impl CCTLNetwork { let output = std::str::from_utf8(output.stdout.as_slice()).unwrap(); tracing::info!("{}", output); - if let Some(contract_to_deploy) = contract_to_deploy { + // FIXME: remove once sidecar <-> node communication is more reliable + std::thread::sleep(std::time::Duration::from_secs(2)); + + if let Some(contracts_to_deploy) = contracts_to_deploy { let rpc_port = casper_sidecars.first().unwrap().port.rpc_port; let casper_sidecar_rpc_url = format!("http://0.0.0.0:{rpc_port}/rpc"); let deployer_skey =