tests/trustedcoin: fix

Sometimes trustedcoin outputs `tip: 0`.
Check for `returning block` instead.
This commit is contained in:
Erik Arvstedt 2023-11-20 12:41:46 +01:00 committed by Jonas Nick
parent f06ee98435
commit 457f066e08
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -451,8 +451,7 @@ def _():
expect_clightning_log("plugin-trustedcoin[^^]\[0m\s+estimatefees error: none of the esploras returned usable responses")
if "regtest" in enabled_tests:
num_blocks = test_data["num_blocks"]
expect_clightning_log(f"plugin-trustedcoin[^^]\[0m\s+tip: {num_blocks}")
expect_clightning_log("plugin-trustedcoin[^^]\[0m\s+returning block")
expect_clightning_log(f"plugin-trustedcoin[^^]\[0m\s+returning block {num_blocks}")
if "netns-isolation" in enabled_tests: