Skip to content

Commit

Permalink
cctl: add timeout after awaiting block 1 to address flakyness
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Sep 10, 2024
1 parent b61268c commit 8ec2fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 8ec2fc7

Please sign in to comment.