Skip to content

Commit

Permalink
fix(test): Add a timeout to the non_blocking_logger test (#5325)
Browse files Browse the repository at this point in the history
* Add a timeout to the non_blocking_logger test

* Make rustfmt happy

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
teor2345 and mergify[bot] authored Oct 5, 2022
1 parent 58b0ed1 commit 8a5708c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zebrad/tests/acceptance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,10 @@ fn non_blocking_logger() -> Result<()> {
let zebra_rpc_address = config.rpc.listen_addr.unwrap();

let dir = testdir()?.with_config(&mut config)?;
let mut child = dir.spawn_child(args!["start"])?;
let mut child = dir
.spawn_child(args!["start"])?
.with_timeout(TINY_CHECKPOINT_TIMEOUT);

// Wait until port is open.
child.expect_stdout_line_matches(
format!("Opened RPC endpoint at {}", config.rpc.listen_addr.unwrap()).as_str(),
Expand Down

0 comments on commit 8a5708c

Please sign in to comment.