Skip to content

Commit 3175aca

Browse files
authored
Merge pull request talaia-labs#75 from sr-gi/pytest-timeout
Adds a timeout to Python tests that may wait forever
2 parents 35f3c03 + 4a73548 commit 3175aca

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

watchtower-plugin/tests/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ python = "^3.9"
1010

1111
[tool.poetry.dev-dependencies]
1212
pytest = "^7.1.2"
13+
pytest-timeout = "^2.1.0"
1314
pyln-testing = "^0.10.2"
1415

1516

watchtower-plugin/tests/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def test_watchtower(node_factory, bitcoind, teosd):
7777
assert penalty_txid in fund_txids
7878

7979

80+
@pytest.mark.timeout(60)
8081
def test_unreachable_watchtower(node_factory, bitcoind, teosd):
8182
# Set the max retry interval to 1 sec so we know how much to wait for the next retry attempt
8283
max_interval_time = 1

0 commit comments

Comments
 (0)