ok/jj
1
0
Fork 0
forked from mirrors/jj

tests: avoid using to_internal_string() to produce FS path

This commit is contained in:
Martin von Zweigbergk 2021-05-16 22:53:46 -07:00
parent b6038399f0
commit b50be04b43

View file

@ -313,11 +313,7 @@ fn test_gitignores(use_git: bool) {
testutils::write_working_copy_file(&repo, &gitignore_path, "ignored\nmodified\nremoved\n");
testutils::write_working_copy_file(&repo, &added_path, "2");
testutils::write_working_copy_file(&repo, &modified_path, "2");
std::fs::remove_file(
repo.working_copy_path()
.join(removed_path.to_internal_string()),
)
.unwrap();
std::fs::remove_file(removed_path.to_fs_path(repo.working_copy_path())).unwrap();
testutils::write_working_copy_file(&repo, &ignored_path, "2");
testutils::write_working_copy_file(&repo, &subdir_modified_path, "2");
testutils::write_working_copy_file(&repo, &subdir_ignored_path, "2");