Browse Source

test_lightningd: fix test_gossip_jsonrpc.

A watch constant never changes.

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

14
tests/test_lightningd.py

@ -1356,16 +1356,10 @@ class LightningDTests(BaseLightningDTests):
l1.daemon.wait_for_log('peer_in WIRE_CHANNEL_UPDATE') l1.daemon.wait_for_log('peer_in WIRE_CHANNEL_UPDATE')
l2.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. wait_for(lambda: [c['active'] for c in l1.rpc.getchannels()['channels']] == [True, True])
channels = l1.rpc.getchannels()['channels'] wait_for(lambda: [c['public'] for c in l1.rpc.getchannels()['channels']] == [True, True])
assert len(channels) == 2 wait_for(lambda: [c['active'] for c in l2.rpc.getchannels()['channels']] == [True, True])
assert [c['active'] for c in channels] == [True, True] wait_for(lambda: [c['public'] for c in l2.rpc.getchannels()['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]
def ping_tests(self, l1, l2): def ping_tests(self, l1, l2):
# 0-byte pong gives just type + length field. # 0-byte pong gives just type + length field.

Loading…
Cancel
Save