fix(test): Add a timeout to the non_blocking_logger test (#5325)
* Add a timeout to the non_blocking_logger test * Make rustfmt happy Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
58b0ed1d85
commit
8a5708c217
|
@ -1363,7 +1363,10 @@ fn non_blocking_logger() -> Result<()> {
|
||||||
let zebra_rpc_address = config.rpc.listen_addr.unwrap();
|
let zebra_rpc_address = config.rpc.listen_addr.unwrap();
|
||||||
|
|
||||||
let dir = testdir()?.with_config(&mut config)?;
|
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.
|
// Wait until port is open.
|
||||||
child.expect_stdout_line_matches(
|
child.expect_stdout_line_matches(
|
||||||
format!("Opened RPC endpoint at {}", config.rpc.listen_addr.unwrap()).as_str(),
|
format!("Opened RPC endpoint at {}", config.rpc.listen_addr.unwrap()).as_str(),
|
||||||
|
|
Loading…
Reference in New Issue