mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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>
This commit is contained in:
parent
dd4a1a3510
commit
6b3bcd49d2
@ -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…
Reference in New Issue
Block a user