pytest: don't wait for sendrawtx, wait for expected tx.

In particular, test_no_fee_estimate was flaky due to seeing the funding
tx being sent.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-09-19 13:36:07 +09:30
committed by Christian Decker
parent 7744c41521
commit 252bbe1d2d
4 changed files with 24 additions and 20 deletions

View File

@@ -182,7 +182,7 @@ def test_htlc_sig_persistence(node_factory, executor):
# This should reload the htlc_sig
l2.rpc.dev_fail(l1.info['id'])
# Make sure it broadcasts to chain.
l2.daemon.wait_for_log('sendrawtx exit 0')
l2.wait_for_channel_onchain(l1.info['id'])
l2.stop()
l1.bitcoin.rpc.generate(1)
l1.start()