Skip to content

Commit

Permalink
add request timeout of 2 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-muhirwa committed Dec 17, 2023
1 parent 039c57b commit 6cbc347
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
with:
version: ${{ env.POETRY_VERSION }}

- name: Install libomp (MacOS)
if: runner.os == 'macOS'
run: brew install libomp

- name: Install dependencies
run: |
cd flatnav_python
Expand Down
2 changes: 1 addition & 1 deletion flatnav_python/unit_tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def run_test(
index.add(data=training_set, ef_construction=ef_construction)
end = time.time()

print(f"Indexing time = {end - start} seconds")
print(f"\nIndexing time = {end - start} seconds")

if use_reordering:
if not reordering_algorithm:
Expand Down
2 changes: 1 addition & 1 deletion flatnav_python/unit_tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_ann_benchmark_dataset(dataset_name):
dataset_uri = f"{base_uri}/{dataset_name}.hdf5"

with tempfile.TemporaryDirectory() as tmp:
response = requests.get(dataset_uri)
response = requests.get(dataset_uri, timeout=120)
loc = os.path.join(tmp, dataset_name)

with open(loc, "wb") as f:
Expand Down

0 comments on commit 6cbc347

Please sign in to comment.