Browse Source

pytest: fix flaky assert in test_htlc_send_timeout.

If feerates change, L2 sends L3 a commit for that, which causes us to
fail the assert (which says we won't send a commitment_signed).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
7925469f88
  1. 3
      tests/test_misc.py

3
tests/test_misc.py

@ -792,7 +792,8 @@ def test_htlc_send_timeout(node_factory, bitcoind):
feerates=(7500, 7500, 7500)) feerates=(7500, 7500, 7500))
# Blackhole it after it sends HTLC_ADD to l3. # Blackhole it after it sends HTLC_ADD to l3.
l2 = node_factory.get_node(disconnect=['0WIRE_UPDATE_ADD_HTLC'], l2 = node_factory.get_node(disconnect=['0WIRE_UPDATE_ADD_HTLC'],
options={'log-level': 'io'}) options={'log-level': 'io'},
feerates=(7500, 7500, 7500))
l3 = node_factory.get_node() l3 = node_factory.get_node()
l1.rpc.connect(l2.info['id'], 'localhost', l2.port) l1.rpc.connect(l2.info['id'], 'localhost', l2.port)

Loading…
Cancel
Save