mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(fastapi): use sys.getrecursionlimit() + 1000 as default
Without the increment, we've seen tests failed due to recursion errors caused by starlette's base middleware. Just make it safe in case nobody supplies TEST_RECURSION_LIMIT. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
60f63876c4
commit
fb92fb509b
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ async def app_startup():
|
|||
# when running test suites.
|
||||
# TODO: Find a proper fix to this issue.
|
||||
recursion_limit = int(os.environ.get(
|
||||
"TEST_RECURSION_LIMIT", sys.getrecursionlimit()))
|
||||
"TEST_RECURSION_LIMIT", sys.getrecursionlimit() + 1000))
|
||||
sys.setrecursionlimit(recursion_limit)
|
||||
|
||||
backend = aurweb.config.get("database", "backend")
|
||||
|
|
Loading…
Add table
Reference in a new issue