test: name the redirect-guard test so the live filter selects it

The repo runs the ignored network tests with `cargo test -- --ignored
live`, which matches on the test name; the new redirect test had no
`live_` prefix and would have been skipped by it.
This commit is contained in:
2026-09-21 03:03:37 +08:00
parent 4e723e1657
commit 1fb7837255
+1 -1
View File
@@ -961,7 +961,7 @@ mod tests {
/// third-party response actually controls.
#[tokio::test]
#[ignore = "live network: requires outbound HTTPS to httpbin.org"]
async fn a_redirect_into_the_hosts_network_is_refused() {
async fn live_redirect_into_the_hosts_network_is_refused() {
let url = "https://httpbin.org/redirect-to?url=http://169.254.169.254/latest/meta-data/";
match download_media(url).await.unwrap_err() {
// A policy refusal reaches the caller wrapped by reqwest.