mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pytest: Fix flakiness in test_feerate_stress.
We occasionally get a temporary_channel_failure too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
4eb1233ccb
commit
7abff309e5
1 changed files with 3 additions and 3 deletions
|
@ -2193,10 +2193,10 @@ def test_feerate_stress(node_factory, executor):
|
||||||
|
|
||||||
# Make sure it's reconnected, and wait for last payment.
|
# Make sure it's reconnected, and wait for last payment.
|
||||||
wait_for(lambda: l1.rpc.getpeer(l2.info['id'])['connected'])
|
wait_for(lambda: l1.rpc.getpeer(l2.info['id'])['connected'])
|
||||||
# We can get temporary NODE_
|
# We can get TEMPORARY_CHANNEL_FAILURE due to disconnect, too.
|
||||||
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'):
|
||||||
l1.rpc.waitsendpay("{:064x}".format(l1done - 1))
|
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))
|
l2.rpc.waitsendpay("{:064x}".format(l2done - 1))
|
||||||
l1.rpc.call('dev-feerate', [l2.info['id'], rate - 5])
|
l1.rpc.call('dev-feerate', [l2.info['id'], rate - 5])
|
||||||
assert not l1.daemon.is_in_log('Bad.*signature')
|
assert not l1.daemon.is_in_log('Bad.*signature')
|
||||||
|
|
Loading…
Add table
Reference in a new issue