Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ghcr.io/osgeo/gdal Docker tag to ubuntu-small-3.9.2 (prod-2-9) #1470

Merged
merged 6 commits into from
Oct 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add retry in URL tests
sbrunner committed Oct 11, 2024
commit e0b672ace426d605fbabdb987011540dc83b9641
9 changes: 8 additions & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import time

import pytest
import requests

@@ -30,7 +32,12 @@
)
def test_url(url: str, params: dict[str, str], timeout: int) -> None:
"""Tests that some URL didn't return an error."""
response = requests.get(url, params=params, verify=False, timeout=timeout) # nosec
response = None
for _ in range(5):
response = requests.get(url, params=params, verify=False, timeout=timeout) # nosec
if response.status_code != 503:
break
time.sleep(1)
assert response.status_code == 200, response.text