mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
pytest: test hooks and notifications with libplugin
This commit is contained in:
@@ -813,3 +813,9 @@ def test_libplugin(node_factory):
|
||||
assert l1.rpc.call("helloworld") == "hello test_opt"
|
||||
# But param takes over!
|
||||
assert l1.rpc.call("helloworld", {"name": "test"}) == "hello test"
|
||||
|
||||
# Test hooks and notifications
|
||||
l2 = node_factory.get_node()
|
||||
l2.connect(l1)
|
||||
assert l1.daemon.is_in_log("{} peer_connected".format(l2.info["id"]))
|
||||
l1.daemon.wait_for_log("{} connected".format(l2.info["id"]))
|
||||
|
||||
Reference in New Issue
Block a user