Skip to content

Commit

Permalink
Fix tc-subxt stream restart test (#1613)
Browse files Browse the repository at this point in the history
Co-authored-by: David Craven <[email protected]>
  • Loading branch information
haider-rs and dvc94ch authored Feb 27, 2025
1 parent 9b039c9 commit e481820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tc-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions tc-subxt/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e481820

Please sign in to comment.