From 966aa4ac3245fd66766923907caaf6d1ddd52654 Mon Sep 17 00:00:00 2001 From: Dusty Daemon Date: Thu, 25 Jan 2024 16:16:16 -0500 Subject: [PATCH] dualopen: update test to handle ABORT In he case of initiating an RBF, ABORT is used instead of ERROR. --- tests/test_connection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 29f912aa1599..eb4678e58cef 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -396,18 +396,18 @@ def test_opening_tiny_channel(node_factory, anchors): l1.rpc.connect(l3.info['id'], 'localhost', l3.port) l1.rpc.connect(l4.info['id'], 'localhost', l4.port) - with pytest.raises(RpcError, match=r'They sent (ERROR|WARNING).*channel capacity is .*, which is below .*sat'): + with pytest.raises(RpcError, match=r'They sent (ERROR|WARNING|ABORT).*channel capacity is .*, which is below .*sat'): l1.fundchannel(l2, l2_min_capacity + overhead - 1) assert only_one(l1.rpc.listpeers(l2.info['id'])['peers'])['connected'] l1.fundchannel(l2, l2_min_capacity + overhead) - with pytest.raises(RpcError, match=r'They sent (ERROR|WARNING).*channel capacity is .*, which is below .*sat'): + with pytest.raises(RpcError, match=r'They sent (ERROR|WARNING|ABORT).*channel capacity is .*, which is below .*sat'): l1.fundchannel(l3, l3_min_capacity + overhead - 1) assert only_one(l1.rpc.listpeers(l3.info['id'])['peers'])['connected'] l1.fundchannel(l3, l3_min_capacity + overhead) - with pytest.raises(RpcError, match=r'They sent (ERROR|WARNING).*channel capacity is .*, which is below .*sat'): + with pytest.raises(RpcError, match=r'They sent (ERROR|WARNING|ABORT).*channel capacity is .*, which is below .*sat'): l1.fundchannel(l4, l4_min_capacity + overhead - 1) assert only_one(l1.rpc.listpeers(l4.info['id'])['peers'])['connected'] l1.fundchannel(l4, l4_min_capacity + overhead)