Isolate install_git_public_rate_limited... test from UV_HTTP_RETRIES (#14567)

Blocking https://github.com/astral-sh/uv/pull/14565

This also makes the test 5x faster, from 5s to 1s.
This commit is contained in:
Zanie Blue
2025-07-11 12:13:35 -05:00
committed by GitHub
parent a9e21f7f6b
commit 081e2010df
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -561,7 +561,9 @@ async fn add_git_private_rate_limited_by_github_rest_api_429_response() -> Resul
uv_snapshot!(context.filters(), context
.add()
.arg(format!("uv-private-pypackage @ git+https://{token}@github.com/astral-test/uv-private-pypackage"))
.env("UV_GITHUB_FAST_PATH_URL", server.uri()), @r"
.env(EnvVars::UV_GITHUB_FAST_PATH_URL, server.uri())
.env(EnvVars::UV_TEST_NO_HTTP_RETRY_DELAY, "true")
.env_remove(EnvVars::UV_HTTP_RETRIES), @r"
success: true
exit_code: 0
----- stdout -----
+3 -1
View File
@@ -2168,7 +2168,9 @@ async fn install_git_public_rate_limited_by_github_rest_api_429_response() {
uv_snapshot!(context.filters(), context
.pip_install()
.arg("uv-public-pypackage @ git+https://github.com/astral-test/uv-public-pypackage")
.env("UV_GITHUB_FAST_PATH_URL", server.uri()), @r"
.env(EnvVars::UV_GITHUB_FAST_PATH_URL, server.uri())
.env(EnvVars::UV_TEST_NO_HTTP_RETRY_DELAY, "true")
.env_remove(EnvVars::UV_HTTP_RETRIES), @r"
success: true
exit_code: 0
----- stdout -----