Skip to content

Commit

Permalink
watchtower-plugin: adapts tests to stop using deprecated options/comm…
Browse files Browse the repository at this point in the history
…ands
  • Loading branch information
sr-gi committed Mar 29, 2024
1 parent bf4a3da commit 55d2c8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions watchtower-plugin/tests/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from pyln.client import RpcError
from conftest import WT_PLUGIN


Expand All @@ -16,7 +15,6 @@ def change_endianness(x):
return b[::-1].hex()


@pytest.mark.developer("Requires dev_sign_last_tx")
def test_watchtower(node_factory, bitcoind, teosd):
"""
Test watchtower hook.
Expand Down Expand Up @@ -60,7 +58,7 @@ def test_watchtower(node_factory, bitcoind, teosd):
penalty_txid = bitcoind.rpc.getrawmempool()[0]

# The channel still exists between the two peers, but it's on chain
assert l1.rpc.listpeers()["peers"][0]["channels"][0]["state"] == "ONCHAIN"
assert l1.rpc.listpeerchannels()["channels"][0]["state"] == "ONCHAIN"
assert l2.rpc.getappointment(tower_id, locator)["status"] == "dispute_responded"

# Generate blocks until the penalty gets irrevocably resolved
Expand Down

0 comments on commit 55d2c8d

Please sign in to comment.