Test that a maxhops layer cannot be created
(node_factory)
| 3058 | |
| 3059 | |
| 3060 | def test_maxhops_layer(node_factory): |
| 3061 | """Test that a maxhops layer cannot be created""" |
| 3062 | l1 = node_factory.get_node() |
| 3063 | |
| 3064 | with pytest.raises(RpcError, match="name is reserved"): |
| 3065 | l1.rpc.askrene_create_layer('maxhops=') |
| 3066 | |
| 3067 | with pytest.raises(RpcError, match="name is reserved"): |
| 3068 | l1.rpc.askrene_create_layer('maxhops=1') |