mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user