diff --git a/pyproject.toml b/pyproject.toml index b3758e40..903cf055 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,7 +100,7 @@ test = [ "flake8>=5.0.4", "aiofiles>=0.8.0,<24", "a2wsgi>=1.9.0,<2", - "asyncz>=0.5.0", + "asyncz>=0.6.0", "anyio[trio]>=3.6.2,<5.0.0", "asyncio[trio]>=3.4.3,<4.0.0", "httpx>=0.25.0,<0.30.0", diff --git a/tests/schedulers/asyncz/test_scheduler.py b/tests/schedulers/asyncz/test_scheduler.py index 11367c90..e7ee29ae 100644 --- a/tests/schedulers/asyncz/test_scheduler.py +++ b/tests/schedulers/asyncz/test_scheduler.py @@ -81,14 +81,14 @@ def scheduler_tasks() -> Dict[str, str]: } -@scheduler(name="task1", trigger=IntervalTrigger(seconds=1), max_intances=3, is_enabled=True) +@scheduler(name="task1", trigger=IntervalTrigger(seconds=1), max_instances=3, is_enabled=True) def task_one(): # pragma: no cover value = 3 logger.info(value) return 3 -@scheduler(name="task2", trigger=IntervalTrigger(seconds=3), max_intances=3, is_enabled=True) +@scheduler(name="task2", trigger=IntervalTrigger(seconds=3), max_instances=3, is_enabled=True) def task_two(): # pragma: no cover value = 8 logger.info(value)