Skip to content

Commit e3800d4

Browse files
fix test
1 parent 0ad9967 commit e3800d4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

services/clusters-keeper/tests/unit/test_modules_clusters_management_task.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
from pytest_simcore.helpers.monkeypatch_envs import EnvVarsDict, setenvs_from_dict
1414
from simcore_service_clusters_keeper.core.settings import ApplicationSettings
1515

16-
_FAST_POLL_INTERVAL = "00:00:01"
17-
1816

1917
@pytest.fixture
2018
def app_environment(
2119
app_environment: EnvVarsDict,
2220
monkeypatch: pytest.MonkeyPatch,
2321
) -> EnvVarsDict:
2422
return app_environment | setenvs_from_dict(
25-
monkeypatch, {"CLUSTERS_KEEPER_TASK_INTERVAL": _FAST_POLL_INTERVAL}
23+
monkeypatch, {"CLUSTERS_KEEPER_TASK_INTERVAL": "00:00:01"}
2624
)
2725

2826

@@ -43,10 +41,7 @@ async def test_clusters_management_task_created_and_deleted(
4341
initialized_app: FastAPI,
4442
app_settings: ApplicationSettings,
4543
):
46-
assert (
47-
app_settings.CLUSTERS_KEEPER_TASK_INTERVAL.total_seconds()
48-
== _FAST_POLL_INTERVAL
49-
)
44+
assert app_settings.CLUSTERS_KEEPER_TASK_INTERVAL.total_seconds() == 1
5045
assert hasattr(initialized_app.state, "clusters_cleaning_task")
51-
await asyncio.sleep(5 * _FAST_POLL_INTERVAL)
46+
await asyncio.sleep(5)
5247
mock_background_task.assert_called()

0 commit comments

Comments
 (0)