pytest: fix flake in test_gossip_persistence.
We used to ensure the l3<->l4 channel was private by simply not mining enough blocks to announce. Then we started mining 13 blocks to close the channel, and it will get announced, causing a failure: ``` assert non_public(l2) == [] > wait_for(lambda: non_public(l3) == [scid34, scid34]) ... > raise ValueError("Timeout while waiting for {}", success) E ValueError: ('Timeout while waiting for {}', <function test_gossip_persistence.<locals>.<lambda> at 0x7f6cc69b4170>) ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
695f001161
commit
d4ef20d54a
|
@ -526,9 +526,9 @@ def test_gossip_persistence(node_factory, bitcoind):
|
|||
scid12, _ = l1.fundchannel(l2, 10**6)
|
||||
scid23, _ = l2.fundchannel(l3, 10**6)
|
||||
|
||||
# Make channels public, except for l3 -> l4, which is kept local-only for now
|
||||
# Make channels public, except for l3 -> l4, which is kept local-only
|
||||
mine_funding_to_announce(bitcoind, [l1, l2, l3, l4])
|
||||
scid34, _ = l3.fundchannel(l4, 10**6)
|
||||
scid34, _ = l3.fundchannel(l4, 10**6, announce_channel=False)
|
||||
bitcoind.generate_block(1)
|
||||
|
||||
def active(node):
|
||||
|
|
Loading…
Reference in New Issue