From 3e88596625ccd97eacd4918cc1a7aacc0e2595c6 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 2 Jul 2024 18:24:20 +0200 Subject: [PATCH] tests: Adjust tests for the lack of unilateral attempt now --- tests/test_plugin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index e4f005bfe909..e1d5cec7ddfe 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -2059,11 +2059,8 @@ def mock_sendrawtransaction(tx): # Restart l2, and it should continue where the watchtower left off: l2.start() - # l2 will still try to broadcast its latest commitment tx, but it'll fail - # since l1 has cheated. All commitments share the same prefix, so look for - # that. - penalty_prefix = tx[:(4 + 1 + 36) * 2] # version, txin_count, first txin in hex - l2.daemon.wait_for_log(r'Expected error broadcasting tx {}'.format(penalty_prefix)) + # l2 notices that there has been a unilateral close from l1. + l2.daemon.wait_for_log(r'Peer permanent failure in') # Now make sure the penalty output ends up in our wallet fund_txids = [o['txid'] for o in l2.rpc.listfunds()['outputs']]