mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
reduce max time to 30 sec
This commit is contained in:
parent
44aa188e75
commit
24fe3ea051
@ -48,3 +48,6 @@ ignore = [
|
||||
]
|
||||
select = ["ALL"]
|
||||
extend-safe-fixes = ["D415"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_default_fixture_loop_scope = "function"
|
||||
|
@ -13,6 +13,7 @@ test_websites = [
|
||||
"https://btmet.com/",
|
||||
"https://extratorrent.st/", # github is blocking these
|
||||
"https://idope.se/", # github is blocking these
|
||||
"https://www.ygg.re/",
|
||||
]
|
||||
|
||||
|
||||
@ -20,9 +21,7 @@ test_websites = [
|
||||
def test_bypass(website: str):
|
||||
response = client.post(
|
||||
"/v1",
|
||||
json=LinkRequest(
|
||||
url=website, maxTimeout=120 * len(test_websites), cmd="request.get"
|
||||
).model_dump(),
|
||||
json=LinkRequest(url=website, maxTimeout=30, cmd="request.get").model_dump(),
|
||||
)
|
||||
if response.status_code == HTTPStatus.TOO_MANY_REQUESTS:
|
||||
# if rate limited
|
||||
|
Loading…
x
Reference in New Issue
Block a user