From c6625943b567c11bacb86e176f4a82af3e4ccf5e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 20 Oct 2020 14:28:06 +1030 Subject: [PATCH] pytest: test that route can see private channels. Signed-off-by: Rusty Russell --- tests/test_gossip.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/test_gossip.py b/tests/test_gossip.py index 8494c8043..2e532fd60 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -1774,3 +1774,18 @@ def test_gossip_store_upgrade_v7_v8(node_factory): 'htlc_minimum_msat': Millisatoshi(0), 'htlc_maximum_msat': Millisatoshi(990000000), 'features': '80000000000000000000000000'}] + + +@pytest.mark.xfail(strict=True) +@unittest.skipIf(not DEVELOPER, "devtools are for devs anyway") +def test_routetool(node_factory): + """Test that route tool can see unpublished channels""" + l1, l2 = node_factory.line_graph(2) + + subprocess.run(['devtools/route', + os.path.join(l1.daemon.lightning_dir, + TEST_NETWORK, + 'gossip_store'), + l1.info['id'], + l2.info['id']], + check=True, timeout=TIMEOUT)