mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Speed up pytest with eager page loads
This commit is contained in:
parent
092397cd6f
commit
5100290f76
3 changed files with 6 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ def curl_status(url):
|
|||
"""Get HTTP status code using curl to avoid URL normalization by Python libs."""
|
||||
result = subprocess.run(
|
||||
['curl', '-s', '-o', '/dev/null', '-w', '%{http_code}', url],
|
||||
capture_output=True, text=True, timeout=10
|
||||
capture_output=True, text=True, timeout=30
|
||||
)
|
||||
return int(result.stdout)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue