Test the 'channel_opened' notification sent at channel funding success.
(node_factory)
| 1565 | |
| 1566 | |
| 1567 | def 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 | |
| 1583 | def test_forward_event_notification(node_factory, bitcoind, executor): |
nothing calls this directly
no test coverage detected