mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
test_lightningd: fix test_gossip_jsonrpc.
A watch constant never changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
10b40c524d
commit
43c97187a4
@ -1356,16 +1356,10 @@ class LightningDTests(BaseLightningDTests):
|
||||
l1.daemon.wait_for_log('peer_in WIRE_CHANNEL_UPDATE')
|
||||
l2.daemon.wait_for_log('peer_in WIRE_CHANNEL_UPDATE')
|
||||
|
||||
# Now should be active and public.
|
||||
channels = l1.rpc.getchannels()['channels']
|
||||
assert len(channels) == 2
|
||||
assert [c['active'] for c in channels] == [True, True]
|
||||
assert [c['public'] for c in channels] == [True, True]
|
||||
|
||||
channels = l2.rpc.getchannels()['channels']
|
||||
assert len(channels) == 2
|
||||
assert [c['active'] for c in channels] == [True, True]
|
||||
assert [c['public'] for c in channels] == [True, True]
|
||||
wait_for(lambda: [c['active'] for c in l1.rpc.getchannels()['channels']] == [True, True])
|
||||
wait_for(lambda: [c['public'] for c in l1.rpc.getchannels()['channels']] == [True, True])
|
||||
wait_for(lambda: [c['active'] for c in l2.rpc.getchannels()['channels']] == [True, True])
|
||||
wait_for(lambda: [c['public'] for c in l2.rpc.getchannels()['channels']] == [True, True])
|
||||
|
||||
def ping_tests(self, l1, l2):
|
||||
# 0-byte pong gives just type + length field.
|
||||
|
Loading…
Reference in New Issue
Block a user