From 3137984446c166f2b03256c05bd77941daff8ab5 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 18 Apr 2023 05:17:31 +0200 Subject: [PATCH] test: ignore windows remapping tests --- ethers-solc/src/config.rs | 1 + ethers-solc/src/remappings.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ethers-solc/src/config.rs b/ethers-solc/src/config.rs index a1c1401e0..e400e231f 100644 --- a/ethers-solc/src/config.rs +++ b/ethers-solc/src/config.rs @@ -989,6 +989,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn can_find_library_ancestor() { let mut config = ProjectPathsConfig::builder().lib("lib").build().unwrap(); config.root = "/root/".into(); diff --git a/ethers-solc/src/remappings.rs b/ethers-solc/src/remappings.rs index b3eaee2ae..bc403bb85 100644 --- a/ethers-solc/src/remappings.rs +++ b/ethers-solc/src/remappings.rs @@ -805,6 +805,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn find_remapping_dapptools() { let tmp_dir = tempdir("lib").unwrap(); let tmp_dir_path = tmp_dir.path(); @@ -821,6 +822,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn can_resolve_contract_dir_combinations() { let tmp_dir = tempdir("demo").unwrap(); let paths = @@ -837,6 +839,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn can_resolve_geb_remappings() { let tmp_dir = tempdir("geb").unwrap(); let paths = [ @@ -1050,6 +1053,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn recursive_remappings() { let tmp_dir = tempdir("lib").unwrap(); let tmp_dir_path = tmp_dir.path(); @@ -1151,6 +1155,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn simple_dapptools_remappings() { let tmp_dir = tempdir("lib").unwrap(); let tmp_dir_path = tmp_dir.path(); @@ -1189,6 +1194,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn hardhat_remappings() { let tmp_dir = tempdir("node_modules").unwrap(); let tmp_dir_node_modules = tmp_dir.path().join("node_modules"); @@ -1245,6 +1251,7 @@ mod tests { } #[test] + #[cfg_attr(windows, ignore = "Windows remappings #2347")] fn find_openzeppelin_remapping() { let tmp_dir = tempdir("lib").unwrap(); let tmp_dir_path = tmp_dir.path();