Skip to content

Commit

Permalink
Merge pull request #75 from sr-gi/pytest-timeout
Browse files Browse the repository at this point in the history
Adds a timeout to Python tests that may wait forever
  • Loading branch information
sr-gi authored Jul 12, 2022
2 parents 35f3c03 + 4a73548 commit 3175aca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions watchtower-plugin/tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ python = "^3.9"

[tool.poetry.dev-dependencies]
pytest = "^7.1.2"
pytest-timeout = "^2.1.0"
pyln-testing = "^0.10.2"


Expand Down
1 change: 1 addition & 0 deletions watchtower-plugin/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def test_watchtower(node_factory, bitcoind, teosd):
assert penalty_txid in fund_txids


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

0 comments on commit 3175aca

Please sign in to comment.