MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_routetool

Function test_routetool

tests/test_gossip.py:1942–1952  ·  view source on GitHub ↗

Test that route tool can see published channels

(node_factory)

Source from the content-addressed store, hash-verified

1940
1941
1942def test_routetool(node_factory):
1943 """Test that route tool can see published channels"""
1944 l1, l2 = node_factory.line_graph(2, wait_for_announce=True)
1945
1946 subprocess.run(['devtools/route',
1947 os.path.join(l1.daemon.lightning_dir,
1948 TEST_NETWORK,
1949 'gossip_store'),
1950 l1.info['id'],
1951 l2.info['id']],
1952 check=True, timeout=TIMEOUT)
1953
1954
1955def test_addgossip(node_factory):

Callers

nothing calls this directly

Calls 3

line_graphMethod · 0.80
joinMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected