From 7abff309e5c23c0227c92e463bc597f567920fd8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 4 May 2020 17:02:27 +0930 Subject: [PATCH] pytest: Fix flakiness in test_feerate_stress. We occasionally get a temporary_channel_failure too. Signed-off-by: Rusty Russell --- 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 021649015..ee9b23c44 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -2193,10 +2193,10 @@ def test_feerate_stress(node_factory, executor): # Make sure it's reconnected, and wait for last payment. wait_for(lambda: l1.rpc.getpeer(l2.info['id'])['connected']) - # We can get temporary NODE_ - with pytest.raises(RpcError, match='WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS'): + # We can get TEMPORARY_CHANNEL_FAILURE due to disconnect, too. + with pytest.raises(RpcError, match='WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS|WIRE_TEMPORARY_CHANNEL_FAILURE'): l1.rpc.waitsendpay("{:064x}".format(l1done - 1)) - with pytest.raises(RpcError, match='WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS'): + with pytest.raises(RpcError, match='WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS|WIRE_TEMPORARY_CHANNEL_FAILURE'): l2.rpc.waitsendpay("{:064x}".format(l2done - 1)) l1.rpc.call('dev-feerate', [l2.info['id'], rate - 5]) assert not l1.daemon.is_in_log('Bad.*signature')