Browse Source

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 <rusty@rustcorp.com.au>
travis-debug
Rusty Russell 5 years ago
parent
commit
30634aa837
  1. 6
      tests/test_gossip.py

6
tests/test_gossip.py

@ -1094,8 +1094,10 @@ def test_gossipwith(node_factory):
def test_gossip_notices_close(node_factory, bitcoind): def test_gossip_notices_close(node_factory, bitcoind):
# We want IO logging so we can replay a channel_announce to l1. # We want IO logging so we can replay a channel_announce to l1;
l1 = node_factory.get_node(options={'log-level': 'io'}) # 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) l2, l3 = node_factory.line_graph(2)
l1.rpc.connect(l2.info['id'], 'localhost', l2.port) l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
# FIXME: sending SIGUSR1 immediately may kill it before handler installed. # FIXME: sending SIGUSR1 immediately may kill it before handler installed.

Loading…
Cancel
Save