(node_factory)
| 476 | |
| 477 | |
| 478 | def test_remote_disconnect(node_factory): |
| 479 | l1, l2 = node_factory.get_nodes(2) |
| 480 | |
| 481 | l1.rpc.connect(l2.info['id'], 'localhost', l2.port) |
| 482 | wait_for(lambda: l2.rpc.listpeers()['peers'] != []) |
| 483 | l2.rpc.disconnect(l1.info['id']) |
| 484 | |
| 485 | # l1 should notice! |
| 486 | wait_for(lambda: l1.rpc.listpeers()['peers'] == []) |
| 487 | |
| 488 | |
| 489 | @pytest.mark.developer |
nothing calls this directly
no test coverage detected