From 8a5708c2170668b6de761176ef553aa9cd323c48 Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 6 Oct 2022 07:45:18 +1000 Subject: [PATCH] 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> --- zebrad/tests/acceptance.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 45c6965f696..227ddde29d5 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -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(),