From d84dc5633a80880840914bdaf6c18f53132e2d32 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 12 Jan 2018 14:32:03 +1030 Subject: [PATCH] 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 --- tests/test_lightningd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index 24e45d5b6..7acc73282 100644 --- a/tests/test_lightningd.py +++ b/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: #