Get language2 tests passing by not blocking on a foreground task

This commit is contained in:
Nathan Sobo 2023-11-01 21:04:17 -06:00
parent 53066df522
commit 57dfc50687
4 changed files with 6 additions and 11 deletions

View file

@ -434,7 +434,7 @@ impl Buffer {
));
let text_operations = self.text.operations().clone();
cx.spawn(|_| async move {
cx.background_executor().spawn(async move {
let since = since.unwrap_or_default();
operations.extend(
text_operations

View file

@ -1943,6 +1943,7 @@ fn test_random_collaboration(cx: &mut AppContext, mut rng: StdRng) {
.detach();
buffer
});
buffers.push(buffer);
replica_ids.push(i as ReplicaId);
network.lock().add_peer(i as ReplicaId);