Skip to content

Commit

Permalink
fix: replace separator when testing e2e on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelmmiguel committed Oct 5, 2023
1 parent d4ad3a9 commit a4d4f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
};
Expand Down

0 comments on commit a4d4f76

Please sign in to comment.