pytest: fix flaky test in test_htlc_sig_persistence

We can shutdown before the tx hits bitcoind.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-07-02 20:07:58 +09:30
committed by Christian Decker
parent ed83bbe623
commit dd7afc33ee

View File

@@ -3282,6 +3282,8 @@ class LightningDTests(BaseLightningDTests):
# 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.stop()
l1.bitcoin.rpc.generate(1)
l1.start()