From 6f4fca3a6fb7ad7464dc14557e9a260f9b403c8f Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 13 Jan 2018 12:31:21 +0100 Subject: [PATCH] pytest: Verify that we forget nodes that have no channels anymore Signed-off-by: Christian Decker --- tests/test_lightningd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index 92ab18990..7371f69ba 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -1463,6 +1463,8 @@ class LightningDTests(BaseLightningDTests): assert scid2 not in [c['short_channel_id'] for c in l1.rpc.getchannels()['channels']] assert scid2 not in [c['short_channel_id'] for c in l2.rpc.getchannels()['channels']] + assert l3.info['id'] not in [n['nodeid'] for n in l1.rpc.getnodes()['nodes']] + assert l3.info['id'] not in [n['nodeid'] for n in l2.rpc.getnodes()['nodes']] def ping_tests(self, l1, l2): # 0-byte pong gives just type + length field.