Browse Source

test_lightning.py: make sure gossip has processed channel_updates.

Receiving them in channeld is not enough to avoid the race:

    route = l1.rpc.getroute(l3.info['id'], 4999999, 1)["route"]
...
    ValueError: RPC call failed: Could not find a route

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
d84dc5633a
  1. 8
      tests/test_lightningd.py

8
tests/test_lightningd.py

@ -1614,10 +1614,10 @@ class LightningDTests(BaseLightningDTests):
# Make sure l1 has seen announce for all channels.
l1.daemon.wait_for_logs([
'Received channel_update for channel {}\\(0\\)'.format(c1),
'Received channel_update for channel {}\\(1\\)'.format(c1),
'Received channel_update for channel {}\\(0\\)'.format(c2),
'Received channel_update for channel {}\\(1\\)'.format(c2)])
'Channel {}\\(0\\) was updated.'.format(c1),
'Channel {}\\(1\\) was updated.'.format(c1),
'Channel {}\\(0\\) was updated.'.format(c2),
'Channel {}\\(1\\) was updated.'.format(c2)])
# BOLT #7:
#

Loading…
Cancel
Save