Skip to content

Commit

Permalink
kairos-test-utils: wait for block 1
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed May 8, 2024
1 parent 589941e commit 40822ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kairos-test-utils/src/cctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 40822ed

Please sign in to comment.