Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
This should fix the Windows test again
Browse files Browse the repository at this point in the history
  • Loading branch information
arendjr committed Jul 28, 2023
1 parent 07156f8 commit 712cdaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions crates/rome_cli/tests/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -897,13 +897,13 @@ fn fs_error_infinite_symlink_expansion_to_files() {
#[cfg(target_family = "unix")]
{
symlink(&symlink2_path, &symlink1_path).unwrap();
symlink(symlink1_path, symlink2_path).unwrap();
symlink(&symlink1_path, &symlink2_path).unwrap();
}

#[cfg(target_os = "windows")]
{
check_windows_symlink!(symlink_dir(&symlink2_path, &symlink1_path));
check_windows_symlink!(symlink_dir(symlink1_path, symlink2_path));
check_windows_symlink!(symlink_dir(&symlink1_path, &symlink2_path));
}

let result = run_cli(
Expand All @@ -927,12 +927,12 @@ fn fs_error_infinite_symlink_expansion_to_files() {
.out_buffer
.iter()
.flat_map(|msg| msg.content.0.iter())
.any(|node| node.content.contains("/prefix/symlink1 internalError/fs")));
.any(|node| node.content.contains(&symlink1_path.display().to_string())));
assert!(console
.out_buffer
.iter()
.flat_map(|msg| msg.content.0.iter())
.any(|node| node.content.contains("/foo/bar/symlink2 internalError/fs")));
.any(|node| node.content.contains(&symlink2_path.display().to_string())));
}

#[test]
Expand Down
8 changes: 4 additions & 4 deletions crates/rome_cli/tests/commands/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,13 +895,13 @@ fn fs_error_infinite_symlink_expansion_to_files() {
#[cfg(target_family = "unix")]
{
symlink(&symlink2_path, &symlink1_path).unwrap();
symlink(symlink1_path, symlink2_path).unwrap();
symlink(&symlink1_path, &symlink2_path).unwrap();
}

#[cfg(target_os = "windows")]
{
check_windows_symlink!(symlink_dir(&symlink2_path, &symlink1_path));
check_windows_symlink!(symlink_dir(symlink1_path, symlink2_path));
check_windows_symlink!(symlink_dir(&symlink1_path, &symlink2_path));
}

let result = run_cli(
Expand All @@ -925,12 +925,12 @@ fn fs_error_infinite_symlink_expansion_to_files() {
.out_buffer
.iter()
.flat_map(|msg| msg.content.0.iter())
.any(|node| node.content.contains("/prefix/symlink1 internalError/fs")));
.any(|node| node.content.contains(&symlink1_path.display().to_string())));
assert!(console
.out_buffer
.iter()
.flat_map(|msg| msg.content.0.iter())
.any(|node| node.content.contains("/foo/bar/symlink2 internalError/fs")));
.any(|node| node.content.contains(&symlink2_path.display().to_string())));
}

#[test]
Expand Down

0 comments on commit 712cdaf

Please sign in to comment.