Browse Source

tests: fix flake in test_penalty_htlc_tx_fulfill

If the daemon already knows about the channel before it was stopped,
it won't get this message from gossipd.  That's OK, since we explicitly
test for the channel being active two lines down.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
paymod-02
Rusty Russell 4 years ago
committed by ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent
commit
6b3bcd49d2
  1. 1
      tests/test_closing.py

1
tests/test_closing.py

@ -782,7 +782,6 @@ def test_penalty_htlc_tx_fulfill(node_factory, bitcoind):
# push some money from l3->l2, so that the commit counter advances
l2.rpc.connect(l3.info['id'], 'localhost', l3.port)
l2.daemon.wait_for_log('now ACTIVE')
inv = l3.rpc.invoice(10**4, '1', 'push')
# Make sure gossipd in l2 knows it's active
wait_for(lambda: [c['active'] for c in l2.rpc.listchannels(l2.get_channel_scid(l3))['channels']] == [True, True])

Loading…
Cancel
Save