From 177bfb1f0f89c73a16ee770a33c90e6ff2f8220e Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:42:03 +0100 Subject: [PATCH] fixed warnings --- .../tests/unit/with_dbs/comp_scheduler/test_scheduler_dask.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/director-v2/tests/unit/with_dbs/comp_scheduler/test_scheduler_dask.py b/services/director-v2/tests/unit/with_dbs/comp_scheduler/test_scheduler_dask.py index f6a041b934e6..7609f6e956e0 100644 --- a/services/director-v2/tests/unit/with_dbs/comp_scheduler/test_scheduler_dask.py +++ b/services/director-v2/tests/unit/with_dbs/comp_scheduler/test_scheduler_dask.py @@ -1606,7 +1606,9 @@ async def _return_random_task_result(job_id) -> TaskOutputData: @pytest.fixture def with_fast_service_heartbeat_s(monkeypatch: pytest.MonkeyPatch) -> int: seconds = 1 - monkeypatch.setenv("SERVICE_TRACKING_HEARTBEAT", f"{seconds}") + monkeypatch.setenv( + "SERVICE_TRACKING_HEARTBEAT", f"{datetime.timedelta(seconds=seconds)}" + ) return seconds