pytest: Wait on both sides in test_peerinfo

We were sort of assuming that one side telling it's ok would automagically make
the other side succeed as well.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2018-05-20 13:05:37 -07:00
committed by Rusty Russell
parent eb869cf144
commit f1c64db5e7

View File

@@ -4524,6 +4524,7 @@ class LightningDTests(BaseLightningDTests):
l1.daemon.wait_for_log('Forgetting remote peer') l1.daemon.wait_for_log('Forgetting remote peer')
bitcoind.generate_block(100) bitcoind.generate_block(100)
l1.daemon.wait_for_log('WIRE_ONCHAIN_ALL_IRREVOCABLY_RESOLVED') l1.daemon.wait_for_log('WIRE_ONCHAIN_ALL_IRREVOCABLY_RESOLVED')
l2.daemon.wait_for_log('WIRE_ONCHAIN_ALL_IRREVOCABLY_RESOLVED')
# The only channel was closed, everybody should have forgotten the nodes # The only channel was closed, everybody should have forgotten the nodes
assert l1.rpc.listnodes()['nodes'] == [] assert l1.rpc.listnodes()['nodes'] == []