diff --git a/tests/test_pay.py b/tests/test_pay.py index 11581ee6a..dc22f42e2 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -2634,6 +2634,9 @@ def test_htlc_too_dusty_outgoing(node_factory, bitcoind, chainparams): l1.set_feerates([feerate * 2] * 4, False) l1.restart() + # Make sure fails before we try sending htlc! + l1.daemon.wait_for_log('Too much dust to update fee') + # the channel should start warning -- too much dust inv = l2.rpc.invoice(htlc_val_msat, str(num_dusty_htlcs + 1), str(num_dusty_htlcs + 1)) with pytest.raises(RpcError, match=r'WIRE_TEMPORARY_CHANNEL_FAILURE'):