Skip to content

Commit 5c7d2f0

Browse files
committed
df-tests: wait for disconnect before asserting unknown channel
fixes: FAILED tests/test_connection.py::test_funding_v2_corners - Failed: DID NOT RAISE
1 parent 44dd353 commit 5c7d2f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_connection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,12 +1324,10 @@ def test_funding_v2_corners(node_factory, bitcoind):
13241324
l1.rpc.disconnect(l2.info['id'], force=True)
13251325
wait_for(lambda: len(l1.rpc.listpeers()['peers']) == 0)
13261326

1327-
if not len(l2.rpc.listpeers()['peers']) == 1:
1328-
assert l2.daemon.wait_for_log('Unsaved peer failed')
1329-
13301327
with pytest.raises(RpcError, match=r'Unknown channel'):
13311328
l1.rpc.openchannel_abort(start['channel_id'])
13321329

1330+
wait_for(lambda: len(l2.rpc.listpeers()['peers']) == 0)
13331331
with pytest.raises(RpcError, match=r'Unknown channel'):
13341332
l2.rpc.openchannel_abort(start['channel_id'])
13351333

0 commit comments

Comments
 (0)