File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2312,6 +2312,8 @@ def test_emergencyrecover(node_factory, bitcoind):
23122312 l1 , l2 = node_factory .get_nodes (2 , opts = [{}, {}])
23132313 l1 .rpc .connect (l2 .info ['id' ], 'localhost' , l2 .port )
23142314 c12 , _ = l1 .fundchannel (l2 , 10 ** 5 )
2315+ stubs = l1 .rpc .emergencyrecover ()["stubs" ]
2316+ assert l1 .daemon .is_in_log ('channel {} already exists!' .format (_ ['channel_id' ]))
23152317
23162318 l1 .stop ()
23172319
@@ -2322,6 +2324,7 @@ def test_emergencyrecover(node_factory, bitcoind):
23222324 stubs = l1 .rpc .emergencyrecover ()["stubs" ]
23232325 assert len (stubs ) == 1
23242326 assert stubs [0 ] == _ ["channel_id" ]
2327+ assert l1 .daemon .is_in_log ('channel {} already exists!' .format (_ ['channel_id' ]))
23252328
23262329 listfunds = l1 .rpc .listfunds ()["channels" ][0 ]
23272330 assert listfunds ["short_channel_id" ] == "1x1x1"
You can’t perform that action at this time.
0 commit comments