mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
test_lightningd.py: make sure l2 has seen announcements in test_gossip_jsonrpc
> assert [c['active'] for c in l2.rpc.getchannels()['channels']] == [True, True] E AssertionError: assert [False, True] == [True, True] E At index 0 diff: False != True E Full diff: E - [False, True] E + [True, True] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
648e4feee2
commit
6a1ea14441
@@ -1384,6 +1384,13 @@ class LightningDTests(BaseLightningDTests):
|
|||||||
'Channel {}\\(1\\) was updated.'
|
'Channel {}\\(1\\) was updated.'
|
||||||
.format(channel_id)])
|
.format(channel_id)])
|
||||||
|
|
||||||
|
l2.daemon.wait_for_logs(['peer_out WIRE_CHANNEL_ANNOUNCEMENT',
|
||||||
|
'peer_in WIRE_CHANNEL_ANNOUNCEMENT',
|
||||||
|
'Channel {}\\(0\\) was updated.'
|
||||||
|
.format(channel_id),
|
||||||
|
'Channel {}\\(1\\) was updated.'
|
||||||
|
.format(channel_id)])
|
||||||
|
|
||||||
nodes = l1.rpc.getnodes()['nodes']
|
nodes = l1.rpc.getnodes()['nodes']
|
||||||
assert set([n['nodeid'] for n in nodes]) == set([l1.info['id'], l2.info['id']])
|
assert set([n['nodeid'] for n in nodes]) == set([l1.info['id'], l2.info['id']])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user