From f1c64db5e71fbac3e00360b42f1272ef8f46b242 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 20 May 2018 13:05:37 -0700 Subject: [PATCH] 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 --- tests/test_lightningd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index c2e8cecfc..76ba242e6 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -4524,6 +4524,7 @@ class LightningDTests(BaseLightningDTests): l1.daemon.wait_for_log('Forgetting remote peer') bitcoind.generate_block(100) 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 assert l1.rpc.listnodes()['nodes'] == []