From 40822ed28a1d8d877641cb660e14ca4160c3c262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Wed, 8 May 2024 14:47:57 -0500 Subject: [PATCH] kairos-test-utils: wait for block 1 --- kairos-test-utils/src/cctl.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kairos-test-utils/src/cctl.rs b/kairos-test-utils/src/cctl.rs index 6b12c639..14678c05 100644 --- a/kairos-test-utils/src/cctl.rs +++ b/kairos-test-utils/src/cctl.rs @@ -111,6 +111,15 @@ impl CCTLNetwork { .await .expect("Waiting for network to pass genesis failed"); + tracing::info!("Waiting for block 1"); + let output = Command::new("cctl-chain-await-until-block-n") + .env("CCTL_ASSETS", &assets_dir) + .arg("height=1") + .output() + .expect("Waiting for network to start processing blocks failed"); + let output = std::str::from_utf8(output.stdout.as_slice()).unwrap(); + tracing::info!("{}", output); + Ok(CCTLNetwork { working_dir, assets_dir,