test 'connect' and 'disconnect' notifications
(node_factory)
| 418 | |
| 419 | |
| 420 | def test_plugin_connect_notifications(node_factory): |
| 421 | """ test 'connect' and 'disconnect' notifications |
| 422 | """ |
| 423 | l1, l2 = node_factory.get_nodes(2, opts={'plugin': os.path.join(os.getcwd(), 'contrib/plugins/helloworld.py')}) |
| 424 | |
| 425 | l1.connect(l2) |
| 426 | l1.daemon.wait_for_log(r'Received connect event') |
| 427 | l2.daemon.wait_for_log(r'Received connect event') |
| 428 | |
| 429 | l2.rpc.disconnect(l1.info['id']) |
| 430 | l1.daemon.wait_for_log(r'Received disconnect event') |
| 431 | l2.daemon.wait_for_log(r'Received disconnect event') |
| 432 | |
| 433 | |
| 434 | def test_failing_plugins(directory): |
nothing calls this directly
no test coverage detected