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

Function test_channel_opened_notification

tests/test_plugin.py:1567–1580  ·  view source on GitHub ↗

Test the 'channel_opened' notification sent at channel funding success.

(node_factory)

Source from the content-addressed store, hash-verified

1565
1566
1567def test_channel_opened_notification(node_factory):
1568 """
1569 Test the 'channel_opened' notification sent at channel funding success.
1570 """
1571 opts = [{}, {"plugin": os.path.join(os.getcwd(), "tests/plugins/misc_notifications.py")}]
1572 amount = 10**6
1573 l1, l2 = node_factory.line_graph(2, fundchannel=True, fundamount=amount,
1574 opts=opts)
1575
1576 # Might have already passed, so reset start.
1577 l2.daemon.logsearch_start = 0
1578 l2.daemon.wait_for_log(r"A channel was opened to us by {}, "
1579 "with an amount of {}*"
1580 .format(l1.info["id"], amount))
1581
1582
1583def test_forward_event_notification(node_factory, bitcoind, executor):

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
line_graphMethod · 0.80
wait_for_logMethod · 0.80

Tested by

no test coverage detected