Skip to content

Commit

Permalink
Cannot fix pytest-async yet
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Sep 13, 2024
1 parent 37cbf92 commit 4e1eaaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ filterwarnings =
ignore:Elasticsearch built-in security:

asyncio_mode=strict
# asyncio_default_fixture_loop_scope=session

log_cli = True
2 changes: 1 addition & 1 deletion yente/provider/opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class OpenSearchProvider(SearchProvider):
async def create(cls) -> "OpenSearchProvider":
"""Get elasticsearch connection."""
kwargs: Dict[str, Any] = dict(
request_timeout=30,
request_timeout=60,
retry_on_timeout=True,
max_retries=10,
hosts=[settings.INDEX_URL],
Expand Down

0 comments on commit 4e1eaaf

Please sign in to comment.