DIRECTORY_MOVE_TO reuses the same DirListEntry rather than creating a new one

This commit is contained in:
A.J. Beamon 2018-05-18 09:38:03 -07:00
parent 82821d17af
commit 7159dd5ce2
1 changed files with 1 additions and 2 deletions

View File

@ -234,8 +234,7 @@ class DirectoryTest(Test):
new_path = generate_path()
instructions.push_args(*test_util.with_length(new_path))
instructions.append(op)
self.dir_list.append(dir_entry.root.add_child(new_path, default_path, self.root,
DirListEntry(True, True, dir_entry.has_known_prefix)))
self.dir_list.append(dir_entry.root.add_child(new_path, default_path, self.root, dir_entry))
# Make sure that the default directory subspace still exists after moving the current directory
self.ensure_default_directory_subspace(instructions, default_path)