Make remote edit randomized tests pass with locators

This commit is contained in:
Antonio Scandurra 2021-12-09 09:15:19 +01:00
parent b4ebe179f9
commit dc81b5f57a
2 changed files with 37 additions and 12 deletions

View file

@ -579,6 +579,7 @@ fn test_random_concurrent_edits(mut rng: StdRng) {
}
_ => {}
}
buffer.check_invariants();
if mutation_count == 0 && network.is_idle() {
break;
@ -605,6 +606,7 @@ fn test_random_concurrent_edits(mut rng: StdRng) {
.all_selection_ranges::<usize>()
.collect::<HashMap<_, _>>()
);
buffer.check_invariants();
}
}