Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed May 18, 2024
1 parent 7273791 commit 5a37c33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helix-term/tests/test/commands/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@ async fn test_symlink_write_relative() -> anyhow::Result<()> {
std::fs::create_dir(&inner_dir)?;

let mut file = tempfile::NamedTempFile::new_in(&inner_dir)?;
let mut file_content = String::new();
file.as_file_mut().read_to_string(&mut file_content)?;
assert_eq!(file_content, "");

let symlink_path = dir.path().join("linked");
let relative_path = format!("b/{}", file.path().file_name().unwrap().to_str().unwrap());
symlink(relative_path, &symlink_path)?;
Expand Down

0 comments on commit 5a37c33

Please sign in to comment.