From 9c3252eb41928ba118392bce621d0ea1eff039f3 Mon Sep 17 00:00:00 2001 From: sim Date: Fri, 17 Nov 2023 09:54:53 +0100 Subject: [PATCH] Fix tests with new default config --- src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index ca0cb96..05a83d3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -119,21 +119,21 @@ mod tests { async fn check_endpoint() { let cfg = test_config("*"); assert!( - cfg.is_url_endpoint_valid(&url::Url::parse("http://0.0.0.0/foo?blah").unwrap()) + cfg.is_url_endpoint_valid(&url::Url::parse("https://ntfy.sh/foo?blah").unwrap()) .await ); assert!( - !cfg.is_url_endpoint_valid(&url::Url::parse("http://0.0.0.0:8080/foo?blah").unwrap()) + !cfg.is_url_endpoint_valid(&url::Url::parse("https://ntfy.sh:8080/foo?blah").unwrap()) .await ); assert!( !cfg.is_url_endpoint_valid( - &url::Url::parse("http://user:pass@0.0.0.0/foo?blah").unwrap() + &url::Url::parse("https://user:pass@ntfy.sh/foo?blah").unwrap() ) .await ); assert!( - !cfg.is_url_endpoint_valid(&url::Url::parse("https://0.0.0.0/foo?blah").unwrap()) + !cfg.is_url_endpoint_valid(&url::Url::parse("http://ntfy.sh/foo?blah").unwrap()) .await ); }