From a4d4f768d385ee4c2a4b1eea2b3cbc2cf1086de0 Mon Sep 17 00:00:00 2001 From: Angel M De Miguel Date: Thu, 5 Oct 2023 13:49:12 +0200 Subject: [PATCH] fix: replace separator when testing e2e on Windows --- tests/e2e.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e.rs b/tests/e2e.rs index 4bce772..c611cf8 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()) + format!("http://localhost:8080/{}", cargo_toml.to_string_lossy()).replace('\\', "/") } else { format!("http://localhost:8080{}", cargo_toml.to_string_lossy()) };