Skip to content

Commit

Permalink
Merge pull request #103 from mlexchange/hotfix/increase-timeout
Browse files Browse the repository at this point in the history
👽️ bump up timeout
  • Loading branch information
hannahker authored Sep 12, 2023
2 parents 0914f5e + 5a4c5ff commit 8f5edcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/unit/test_control_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ def test_reset_filters(mocker, nclicks, tiled_data_mock):
return_value=tiled_data_mock,
)
from callbacks.control_bar import reset_filters

assert reset_filters(nclicks) == 100
3 changes: 2 additions & 1 deletion utils/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import requests
from urllib.parse import urlparse
import httpx

from tiled.client import from_uri
from tiled.client.cache import Cache
Expand Down Expand Up @@ -103,7 +104,7 @@ def DEV_filter_json_data_by_timestamp(data, timestamp):
client = from_uri("http://localhost:8000")
data = client
else:
client = from_uri(TILED_URI, api_key=API_KEY)
client = from_uri(TILED_URI, api_key=API_KEY, timeout=httpx.Timeout(30.0))
data = client["reconstruction"]


Expand Down

0 comments on commit 8f5edcf

Please sign in to comment.