diff --git a/tests/e2e.rs b/tests/e2e.rs index c611cf8..7ec347e 100644 --- a/tests/e2e.rs +++ b/tests/e2e.rs @@ -252,7 +252,7 @@ mod test { let path = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()); let cargo_toml = path.join("Cargo.toml"); let cargo_toml_str = if cfg!(target_os = "windows") { - format!("http://localhost:8080/{}", cargo_toml.to_string_lossy()).replace('\\', "/") + format!("http://localhost:8080/{}", cargo_toml.to_string_lossy()).replace(':', "%3A") } else { format!("http://localhost:8080{}", cargo_toml.to_string_lossy()) };