Skip to content

Commit 8f78a76

Browse files
adi2011niftynei
authored andcommitted
tests/test_misc.py: check logs for already existing channel.
1 parent 0b737fd commit 8f78a76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_misc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)