mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 23:23:20 +00:00
tests: do not pass in commit objects loaded from different store
Otherwise the assertion would fail in the next patch.
This commit is contained in:
parent
8b72dad095
commit
37c41d0eaf
1 changed files with 5 additions and 0 deletions
|
@ -371,6 +371,11 @@ fn test_acl() {
|
||||||
&default_working_copy_factories(),
|
&default_working_copy_factories(),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
// Reload commits from the store associated with the workspace
|
||||||
|
let repo = ws.repo_loader().load_at(repo.operation()).unwrap();
|
||||||
|
let commit1 = repo.store().get_commit(commit1.id()).unwrap();
|
||||||
|
let commit2 = repo.store().get_commit(commit2.id()).unwrap();
|
||||||
|
|
||||||
ws.check_out(repo.op_id().clone(), None, &commit1).unwrap();
|
ws.check_out(repo.op_id().clone(), None, &commit1).unwrap();
|
||||||
assert!(!secret_modified_path.to_fs_path(&workspace_root).is_file());
|
assert!(!secret_modified_path.to_fs_path(&workspace_root).is_file());
|
||||||
assert!(!secret_added_path.to_fs_path(&workspace_root).is_file());
|
assert!(!secret_added_path.to_fs_path(&workspace_root).is_file());
|
||||||
|
|
Loading…
Reference in a new issue