Skip to content

Commit

Permalink
Increase default Opensearch request timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hakbailey committed Oct 25, 2022
1 parent 9d7916b commit ae7cbe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_configure_sentry_env_variable_is_dsn(monkeypatch):

def test_opensearch_request_timeout_default(monkeypatch):
monkeypatch.delenv("OPENSEARCH_REQUEST_TIMEOUT", raising=False)
assert opensearch_request_timeout() == 30
assert opensearch_request_timeout() == 120


def test_opensearch_request_timeout_from_env(monkeypatch):
Expand Down
2 changes: 1 addition & 1 deletion tim/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def configure_sentry() -> str:


def opensearch_request_timeout() -> int:
return int(os.getenv("OPENSEARCH_REQUEST_TIMEOUT", "30"))
return int(os.getenv("OPENSEARCH_REQUEST_TIMEOUT", "120"))

0 comments on commit ae7cbe2

Please sign in to comment.