From 0993d12955730f306ec710cfaddeeb5cc43b5119 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 3 Jun 2024 20:57:15 +0200 Subject: [PATCH] Add timeout to some tests --- requirements-dev.txt | 1 + tests/exchange_online/test_ccxt_ws_compat.py | 1 + 2 files changed, 2 insertions(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index c9d561b40..03ca030c0 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -15,6 +15,7 @@ pytest-asyncio==0.23.7 pytest-cov==5.0.0 pytest-mock==3.14.0 pytest-random-order==1.1.1 +pytest-timeout==2.3.1 pytest-xdist==3.6.1 isort==5.13.2 # For datetime mocking diff --git a/tests/exchange_online/test_ccxt_ws_compat.py b/tests/exchange_online/test_ccxt_ws_compat.py index 32398573a..49c46f516 100644 --- a/tests/exchange_online/test_ccxt_ws_compat.py +++ b/tests/exchange_online/test_ccxt_ws_compat.py @@ -19,6 +19,7 @@ from tests.exchange_online.conftest import EXCHANGE_WS_FIXTURE_TYPE @pytest.mark.longrun +@pytest.mark.timeout(3 * 60) class TestCCXTExchangeWs: def test_ccxt_ohlcv(self, exchange_ws: EXCHANGE_WS_FIXTURE_TYPE, caplog, mocker): exch, exchangename, pair = exchange_ws