Wait for project sharing to complete in LSP status integration test

This commit is contained in:
Max Brunsfeld 2022-10-11 12:15:54 -07:00
parent 1f0a9ce418
commit 0e695eaae8

View File

@ -3874,6 +3874,7 @@ async fn test_language_server_statuses(
.update(cx_a, |call, cx| call.share_project(project_a.clone(), cx)) .update(cx_a, |call, cx| call.share_project(project_a.clone(), cx))
.await .await
.unwrap(); .unwrap();
deterministic.run_until_parked();
let project_b = client_b.build_remote_project(project_id, cx_b).await; let project_b = client_b.build_remote_project(project_id, cx_b).await;
project_b.read_with(cx_b, |project, _| { project_b.read_with(cx_b, |project, _| {
let status = project.language_server_statuses().next().unwrap(); let status = project.language_server_statuses().next().unwrap();