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>
This commit is contained in:
Rusty Russell 2018-01-12 14:32:03 +10:30 committed by Christian Decker
parent 896ecb4da7
commit d84dc5633a

View File

@ -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:
#