Skip to content

Commit

Permalink
Merge pull request #79 from MITLibraries/increase-timeout
Browse files Browse the repository at this point in the history
Increase timeout
  • Loading branch information
hakbailey authored Oct 26, 2022
2 parents 9d7916b + f00909d commit 20945f7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 49 deletions.
94 changes: 47 additions & 47 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 20945f7

Please sign in to comment.