File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
services/clusters-keeper/tests/unit Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1313from pytest_simcore .helpers .monkeypatch_envs import EnvVarsDict , setenvs_from_dict
1414from simcore_service_clusters_keeper .core .settings import ApplicationSettings
1515
16- _FAST_POLL_INTERVAL = "00:00:01"
17-
1816
1917@pytest .fixture
2018def 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 ()
You can’t perform that action at this time.
0 commit comments