From b3534462e0392fbace73657cf6bbe8b46ca6ebdb Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 6 Feb 2018 12:33:09 +1030 Subject: [PATCH] test_lightningd.py: fix race in test_fee_limits. Sometimes the super-low-fee commitment tx succeeds, and we see that 'sendrawtx exit 0' instead of the one we're expecting. Signed-off-by: Rusty Russell --- tests/test_lightningd.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index fe2f790d8..99c908ab1 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -3154,7 +3154,11 @@ class LightningDTests(BaseLightningDTests): # L1 asks for stupid low fees l1.rpc.dev_setfees(15) - l1.daemon.wait_for_log('STATUS_FAIL_PEER_BAD') + l1.daemon.wait_for_log('STATUS_FAIL_PEER_BAD:.*update_fee 15 outside range 4250-75000') + # Make sure the resolution of this one doesn't interfere with the next! + # Note: may succeed, may fail with insufficient fee, depending on how + # bitcoind feels! + l1.daemon.wait_for_log('sendrawtx exit') # Restore to normal. l1.rpc.dev_setfees(15000)