From 822a2cf03002e54eed08b300abd484c3b18c8e68 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 3 Jan 2018 15:56:44 +1030 Subject: [PATCH] test_lightningd: make sure we keep watching after peer restart. Signed-off-by: Rusty Russell --- tests/test_lightningd.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index ffe08c694..4c1bc2a10 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -2362,6 +2362,15 @@ class LightningDTests(BaseLightningDTests): l1.daemon.start() assert l1.rpc.getpeers()['peers'][0]['msatoshi_to_us'] == 99980000 + # Now make sure l1 is watching for unilateral closes + l2.rpc.dev_fail(l1.info['id']); + l2.daemon.wait_for_log('Failing due to dev-fail command') + l2.daemon.wait_for_log('sendrawtx exit 0') + bitcoind.generate_block(1) + + # L1 must notice. + l1.daemon.wait_for_log('-> ONCHAIND_THEIR_UNILATERAL') + def test_gossip_badsig(self): l1 = self.node_factory.get_node() l2 = self.node_factory.get_node()