From 27f69f9cbb3123f1cfafb39759e25070228ccb43 Mon Sep 17 00:00:00 2001 From: Peter Hayman Date: Sat, 14 Dec 2024 23:30:20 +1100 Subject: [PATCH] use example.com url --- .gitignore | 1 + crates/bevy_asset/src/http_source.rs | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 7fb50ea86edaf..95d6c4b3ac6c3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ crates/**/target benches/**/target tools/**/target **/*.rs.bk +rustc-ice-* # Cargo Cargo.lock diff --git a/crates/bevy_asset/src/http_source.rs b/crates/bevy_asset/src/http_source.rs index 1792bc1650450..9d4ed7a004e85 100644 --- a/crates/bevy_asset/src/http_source.rs +++ b/crates/bevy_asset/src/http_source.rs @@ -192,10 +192,10 @@ mod tests { fn make_http_uri() { assert_eq!( HttpSourceAssetReader::Http - .make_uri(Path::new("s3.johanhelsing.studio/dump/favicon.png")) + .make_uri(Path::new("example.com/favicon.png")) .to_str() .unwrap(), - "http://s3.johanhelsing.studio/dump/favicon.png" + "http://example.com/favicon.png" ); } @@ -203,10 +203,10 @@ mod tests { fn make_https_uri() { assert_eq!( HttpSourceAssetReader::Https - .make_uri(Path::new("s3.johanhelsing.studio/dump/favicon.png")) + .make_uri(Path::new("example.com/favicon.png")) .to_str() .unwrap(), - "https://s3.johanhelsing.studio/dump/favicon.png" + "https://example.com/favicon.png" ); } @@ -214,11 +214,11 @@ mod tests { fn make_http_meta_uri() { assert_eq!( HttpSourceAssetReader::Http - .make_meta_uri(Path::new("s3.johanhelsing.studio/dump/favicon.png")) + .make_meta_uri(Path::new("example.com/favicon.png")) .expect("cannot create meta uri") .to_str() .unwrap(), - "http://s3.johanhelsing.studio/dump/favicon.png.meta" + "http://example.com/favicon.png.meta" ); } @@ -226,11 +226,11 @@ mod tests { fn make_https_meta_uri() { assert_eq!( HttpSourceAssetReader::Https - .make_meta_uri(Path::new("s3.johanhelsing.studio/dump/favicon.png")) + .make_meta_uri(Path::new("example.com/favicon.png")) .expect("cannot create meta uri") .to_str() .unwrap(), - "https://s3.johanhelsing.studio/dump/favicon.png.meta" + "https://example.com/favicon.png.meta" ); } @@ -238,7 +238,7 @@ mod tests { fn make_https_without_extension_meta_uri() { assert_eq!( HttpSourceAssetReader::Https - .make_meta_uri(Path::new("s3.johanhelsing.studio/dump/favicon")), + .make_meta_uri(Path::new("example.com/favicon")), None ); }