Temporarily remove bogus redirect test (#13076)

## Summary

This needs to be made more reliable.
This commit is contained in:
Charlie Marsh 2025-04-23 17:18:31 -04:00 committed by GitHub
parent 4bef9fadbb
commit a6a0087f74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 34 deletions

View File

@ -11107,37 +11107,3 @@ fn pep_751_multiple_sources() -> Result<()> {
Ok(()) Ok(())
} }
/// Test that uv doesn't hang if an index returns a distribution for the wrong package.
#[tokio::test]
async fn bogus_redirect() -> Result<()> {
let context = TestContext::new("3.12");
let redirect_server = MockServer::start().await;
// Configure a bogus redirect where for all packages, anyio is returned.
Mock::given(method("GET"))
.respond_with(
ResponseTemplate::new(302).insert_header("Location", "https://pypi.org/simple/anyio/"),
)
.mount(&redirect_server)
.await;
uv_snapshot!(
context
.pip_install()
.arg("--default-index")
.arg(redirect_server.uri())
.arg("sniffio"),
@r"
success: false
exit_code: 2
----- stdout -----
----- stderr -----
error: The index returned metadata for the wrong package: expected distribution for sniffio, got distribution for anyio
"
);
Ok(())
}