Skip to content

Commit

Permalink
Update tests for asyncz (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil authored Apr 29, 2024
1 parent ba244b6 commit d236534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/schedulers/asyncz/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d236534

Please sign in to comment.