mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
chore: reduce CI load merging a testcase
This commit is contained in:
committed by
neil saitug
parent
4134c24cc9
commit
183f7698c3
@@ -2744,27 +2744,6 @@ def test_htlc_retransmit_order(node_factory, executor):
|
||||
# If order was wrong, we'll get a LOG_BROKEN and fixtures will complain.
|
||||
|
||||
|
||||
def test_channel_opener(node_factory):
|
||||
""" Simply checks for 'opener' and 'closer' attributes on `listpeers` channels """
|
||||
l1, l2 = node_factory.line_graph(2)
|
||||
|
||||
assert(l1.rpc.listpeers()['peers'][0]['channels'][0]['opener'] == 'local')
|
||||
assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['opener'] == 'remote')
|
||||
|
||||
# 'closer' should be null initially
|
||||
assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['closer'] is None)
|
||||
assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['closer'] is None)
|
||||
|
||||
# close and check for 'closer'
|
||||
l1.rpc.close(l2.rpc.getinfo()["id"])
|
||||
l1.daemon.wait_for_log("State changed from CHANNELD_NORMAL to")
|
||||
l2.daemon.wait_for_log("State changed from CHANNELD_NORMAL to")
|
||||
|
||||
# 'closer' should now be set accordingly
|
||||
assert(l1.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'local')
|
||||
assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'remote')
|
||||
|
||||
|
||||
def test_fundchannel_start_alternate(node_factory, executor):
|
||||
''' Test to see what happens if two nodes start channeling to
|
||||
each other alternately.
|
||||
|
||||
Reference in New Issue
Block a user