Change the definition of check_invariants

- On the host, ensure that only one worktree can exist for a given absolute
path. Asserting about buffers was cool but I think should be tackled in the
context of leaning more on entry ids for collaboration (vs. buffer ids).
- On the guest, ensure that all the opened buffers don't contain deferred
operations.
This commit is contained in:
Antonio Scandurra 2022-03-03 10:51:37 +01:00
parent 53327e2bf0
commit d171d8ccc4
2 changed files with 32 additions and 43 deletions

View file

@ -4293,6 +4293,12 @@ mod tests {
);
}
guest_client
.project
.as_ref()
.unwrap()
.read_with(&guest_cx, |project, cx| project.check_invariants(cx));
for guest_buffer in &guest_client.buffers {
let buffer_id = guest_buffer.read_with(&guest_cx, |buffer, _| buffer.remote_id());
let host_buffer = host_project.read_with(&host_cx, |project, cx| {