diff --git a/tc-cli/src/main.rs b/tc-cli/src/main.rs index c84b07bb8..4704e6533 100644 --- a/tc-cli/src/main.rs +++ b/tc-cli/src/main.rs @@ -209,7 +209,7 @@ async fn main() { .expect("Failed to install rustls crypto provider"); if let Err(err) = real_main().await { println!("{err:#?}"); - std::io::stdout().flush(); + std::io::stdout().flush().unwrap(); std::process::exit(1); } else { std::process::exit(0); diff --git a/tc-subxt/tests/tests.rs b/tc-subxt/tests/tests.rs index fda3102b2..549c8ce25 100644 --- a/tc-subxt/tests/tests.rs +++ b/tc-subxt/tests/tests.rs @@ -118,6 +118,7 @@ async fn test_finalized_stream_error_and_recovery() -> Result<()> { env.set_force_stream_error(true).await; sleep(Duration::from_millis(100)).await; env.set_force_stream_error(false).await; + sleep(Duration::from_secs(1)).await; env.make_block().await; // adding new