Get language2 tests passing by not blocking on a foreground task
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user