Skip to content

Commit 407c2c4

Browse files
committed
pytest: remove test_lockup_drain.
Since this was written, we now test if remote side would get into this situation and stop it from happening, so the test doesn't work any more. Signed-off-by: Rusty Russell <[email protected]>
1 parent 9f61b6e commit 407c2c4

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/test_pay.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2810,31 +2810,6 @@ def test_channel_spendable_receivable_capped(node_factory, bitcoind):
28102810
assert l2.rpc.listpeerchannels()['channels'][0]['receivable_msat'] == Millisatoshi(0xFFFFFFFF)
28112811

28122812

2813-
@unittest.skipIf(True, "Test is extremely flaky")
2814-
def test_lockup_drain(node_factory, bitcoind):
2815-
"""Try to get channel into a state where opener can't afford fees on additional HTLC, so peer can't add HTLC"""
2816-
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True})
2817-
2818-
# l1 sends all the money to l2 until even 1 msat can't get through.
2819-
total = l1.drain(l2)
2820-
2821-
# Even if feerate now increases 2x (30000), l2 should be able to send
2822-
# non-dust HTLC to l1.
2823-
l1.force_feerates(30000)
2824-
l2.pay(l1, total // 2)
2825-
2826-
# reset fees and send all back again
2827-
l1.force_feerates(15000)
2828-
l1.drain(l2)
2829-
2830-
# But if feerate increase just a little more, l2 should not be able to send
2831-
# non-fust HTLC to l1
2832-
l1.force_feerates(30002) # TODO: Why does 30001 fail? off by one in C code?
2833-
wait_for(lambda: l1.rpc.listpeers()['peers'][0]['connected'])
2834-
with pytest.raises(RpcError, match=r".*Capacity exceeded.*"):
2835-
l2.pay(l1, total // 2)
2836-
2837-
28382813
@unittest.skipIf(TEST_NETWORK != 'regtest', 'Assumes anchors')
28392814
def test_htlc_too_dusty_outgoing(node_factory, bitcoind, chainparams):
28402815
""" Try to hit the 'too much dust' limit, should fail the HTLC """

0 commit comments

Comments
 (0)