Skip to content

Commit

Permalink
tests: make helpers create non-legacy trees
Browse files Browse the repository at this point in the history
Extracted and modified from #3746 by @ilyagr.
  • Loading branch information
martinvonz committed Jul 23, 2024
1 parent feceb62 commit abf77c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tests/test_local_working_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ fn test_gitignores_ignored_directory_already_tracked() {
}
}
let id = tree_builder.write_tree().unwrap();
MergedTree::legacy(store.get_tree(RepoPath::root(), &id).unwrap())
MergedTree::resolved(store.get_tree(RepoPath::root(), &id).unwrap())
};

let gitignore_path = RepoPath::from_internal_string(".gitignore");
Expand Down
2 changes: 1 addition & 1 deletion lib/testutils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ pub fn create_single_tree(repo: &Arc<ReadonlyRepo>, path_contents: &[(&RepoPath,
}

pub fn create_tree(repo: &Arc<ReadonlyRepo>, path_contents: &[(&RepoPath, &str)]) -> MergedTree {
MergedTree::legacy(create_single_tree(repo, path_contents))
MergedTree::resolved(create_single_tree(repo, path_contents))
}

#[must_use]
Expand Down

0 comments on commit abf77c8

Please sign in to comment.