mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
pytest: Check that channels are announced and activated correctly
This commit is contained in:
parent
f4cf485f00
commit
b6fea5b429
@ -149,11 +149,19 @@ class LightningDTests(BaseLightningDTests):
|
||||
l1.daemon.wait_for_log('Normal operation')
|
||||
l2.daemon.wait_for_log('Normal operation')
|
||||
|
||||
time.sleep(1)
|
||||
l1.daemon.wait_for_log('peer_out WIRE_ANNOUNCEMENT_SIGNATURES')
|
||||
l1.daemon.wait_for_log('peer_in WIRE_ANNOUNCEMENT_SIGNATURES')
|
||||
|
||||
l1.daemon.wait_for_log('peer_out WIRE_CHANNEL_ANNOUNCEMENT')
|
||||
l1.daemon.wait_for_log('peer_in WIRE_CHANNEL_ANNOUNCEMENT')
|
||||
|
||||
nodes = l1.rpc.getnodes()['nodes']
|
||||
assert set([n['nodeid'] for n in nodes]) == set([l1.info['id'], l2.info['id']])
|
||||
|
||||
channels = l1.rpc.getchannels()['channels']
|
||||
assert len(channels) == 2
|
||||
assert [c['active'] for c in channels] == [True, True]
|
||||
|
||||
class LegacyLightningDTests(BaseLightningDTests):
|
||||
|
||||
def test_connect(self):
|
||||
|
Loading…
Reference in New Issue
Block a user