mirror of https://github.com/astral-sh/uv
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:
parent
a9e21f7f6b
commit
081e2010df
|
|
@ -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 -----
|
||||
|
|
|
|||
|
|
@ -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 -----
|
||||
|
|
|
|||
Loading…
Reference in New Issue