Skip to content

Commit 4021591

Browse files
tests: Lock listclosedchannels sequence
1 parent 51219fe commit 4021591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/autogenerate-rpc-examples.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ def generate_list_examples(l1, l2, l3, c12, c23_2, inv_l31, inv_l32, offer_l23,
19141914
output['amount_msat'] = 201998900000 + (i * 1000) + (k * 100)
19151915
update_example(node=l1, method='listtransactions', params={}, response=listtransactions_res1)
19161916
listclosedchannels_res1 = l2.rpc.listclosedchannels()
1917-
listclosedchannels_res1 = update_list_responses(listclosedchannels_res1, list_key='closedchannels')
1917+
listclosedchannels_res1 = update_list_responses(listclosedchannels_res1, list_key='closedchannels', slice_upto=2, update_func=None, sort=True, sort_key='channel_id')
19181918
for i, closedchannel in enumerate(listclosedchannels_res1['closedchannels'], start=1):
19191919
closedchannel['last_commitment_fee_msat'] = 2894000 + (i * 1000)
19201920
closedchannel['last_commitment_txid'] = 'txidcloselastcommitment0' + (('0000' + str(i)) * 8)

0 commit comments

Comments
 (0)