From 1fb7837255e51cf6b476bf2b0bfb29470a3da54e Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 21 Sep 2026 03:03:37 +0800 Subject: [PATCH] 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. --- crates/x-media/src/site/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/x-media/src/site/mod.rs b/crates/x-media/src/site/mod.rs index 0c77551..c4ee8f4 100644 --- a/crates/x-media/src/site/mod.rs +++ b/crates/x-media/src/site/mod.rs @@ -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.