From cff40aa582268b1f0f9cc61e5d51be33151554ca Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 7 Mar 2022 11:59:11 +1000 Subject: [PATCH] fix(test/lightwalletd): add an alternative matching log line Sometimes lightwalletd goes straight to "Another refresh in progress", without logging "Mempool refresh error" first. --- zebrad/tests/acceptance.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index a706d42f092..95e963387db 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -1694,10 +1694,11 @@ fn lightwalletd_integration() -> Result<()> { lightwalletd.expect_stdout_line_matches("Method not found.*error zcashd getblock rpc"); let (_, zebrad) = zebrad.kill_on_error(result)?; - // zcash/lightwalletd exits with a fatal error here, but - // adityapk00/lightwalletd keeps trying the mempool + // zcash/lightwalletd exits with a fatal error here. + // adityapk00/lightwalletd keeps trying the mempool, + // but it sometimes skips the "Method not found" log line. let result = - lightwalletd.expect_stdout_line_matches("Mempool refresh error: -32601: Method not found"); + lightwalletd.expect_stdout_line_matches("(Mempool refresh error: -32601: Method not found)|(Another refresh in progress, returning)"); let (_, zebrad) = zebrad.kill_on_error(result)?; // Cleanup both processes