Get language2 tests passing by not blocking on a foreground task
This commit is contained in:
parent
53066df522
commit
57dfc50687
4 changed files with 6 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue