(node_factory)
| 525 | |
| 526 | |
| 527 | def test_remote_disconnect(node_factory): |
| 528 | l1, l2 = node_factory.get_nodes(2) |
| 529 | |
| 530 | l1.rpc.connect(l2.info['id'], 'localhost', l2.port) |
| 531 | wait_for(lambda: l2.rpc.listpeers()['peers'] != []) |
| 532 | l2.rpc.disconnect(l1.info['id']) |
| 533 | |
| 534 | # l1 should notice! |
| 535 | wait_for(lambda: l1.rpc.listpeers()['peers'] == []) |
| 536 | |
| 537 | |
| 538 | @pytest.mark.openchannel('v1') |
nothing calls this directly
no test coverage detected