mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
pytest: Extend ListPeerChannels test to include ListClosedChannels
This commit is contained in:
committed by
Rusty Russell
parent
b41cb2f005
commit
90ede052ad
@@ -389,3 +389,13 @@ def test_grpc_listpeerchannels(bitcoind, node_factory):
|
||||
c = res.channels[0]
|
||||
assert c.peer_id.hex() == l2.info['id']
|
||||
assert c.state == 2 # CHANNELD_NORMAL
|
||||
|
||||
# And since we're at it let's close the channel as well so we can
|
||||
# see it in listclosedchanenls
|
||||
|
||||
res = stub.Close(nodepb.CloseRequest(id=l2.info['id']))
|
||||
|
||||
bitcoind.generate_block(100, wait_for_mempool=1)
|
||||
l1.daemon.wait_for_log(r'onchaind complete, forgetting peer')
|
||||
|
||||
stub.ListClosedChannels(nodepb.ListclosedchannelsRequest())
|
||||
|
||||
Reference in New Issue
Block a user