mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pytest: Testing for a node whose channels were closed will not work
In the next commit we remove channels whose outpoint was spent from our network view, so checking for it will not work anymore. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
633f893ec4
commit
428f5608fa
1 changed files with 3 additions and 10 deletions
|
@ -4060,7 +4060,6 @@ class LightningDTests(BaseLightningDTests):
|
|||
|
||||
def test_peerinfo(self):
|
||||
l1, l2 = self.connect()
|
||||
|
||||
# Gossiping but no node announcement yet
|
||||
assert l1.rpc.getpeer(l2.info['id'])['state'] == "GOSSIPING"
|
||||
assert 'alias' not in l1.rpc.getpeer(l2.info['id'])
|
||||
|
@ -4082,15 +4081,9 @@ class LightningDTests(BaseLightningDTests):
|
|||
bitcoind.generate_block(100)
|
||||
l1.daemon.wait_for_log('WIRE_ONCHAIN_ALL_IRREVOCABLY_RESOLVED')
|
||||
|
||||
# Reconnect
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.info['port'])
|
||||
l1.daemon.wait_for_log('WIRE_GOSSIP_PEER_CONNECTED')
|
||||
|
||||
# This time we already know about this node. So the node information appears even in
|
||||
# GOSSIPING state
|
||||
assert l1.rpc.getpeer(l2.info['id'])['state'] == "GOSSIPING"
|
||||
assert l1.rpc.getpeer(l2.info['id'])['alias'] == l1.rpc.listnodes(l2.info['id'])['nodes'][0]['alias']
|
||||
assert l1.rpc.getpeer(l2.info['id'])['color'] == l1.rpc.listnodes(l2.info['id'])['nodes'][0]['color']
|
||||
# The only channel was closed, everybody should have forgotten the nodes
|
||||
assert l1.rpc.listnodes()['nodes'] == []
|
||||
assert l2.rpc.listnodes()['nodes'] == []
|
||||
|
||||
@unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1")
|
||||
def test_blockchaintrack(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue