From 30634aa83772cc9fc149ac3410fe315025f0eda7 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 6 Nov 2019 12:46:01 +1030 Subject: [PATCH] pytest: fix test_gossip_notices_close where we really do inject bad gossip! It currently works because we inject it so fast that it's still doing the txout lookup, but that's about to change. Signed-off-by: Rusty Russell --- tests/test_gossip.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_gossip.py b/tests/test_gossip.py index ef557328e..b2fc574cc 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -1094,8 +1094,10 @@ def test_gossipwith(node_factory): def test_gossip_notices_close(node_factory, bitcoind): - # We want IO logging so we can replay a channel_announce to l1. - l1 = node_factory.get_node(options={'log-level': 'io'}) + # We want IO logging so we can replay a channel_announce to l1; + # We also *really* do feed it bad gossip! + l1 = node_factory.get_node(options={'log-level': 'io'}, + allow_bad_gossip=True) l2, l3 = node_factory.line_graph(2) l1.rpc.connect(l2.info['id'], 'localhost', l2.port) # FIXME: sending SIGUSR1 immediately may kill it before handler installed.