Get project2 tests green
This commit is contained in:
parent
401ddc6f49
commit
53066df522
5 changed files with 31 additions and 23 deletions
|
@ -947,7 +947,7 @@ async fn test_disk_based_diagnostics_progress(cx: &mut gpui2::TestAppContext) {
|
|||
.await
|
||||
.unwrap();
|
||||
|
||||
let mut events = cx.subscribe(&project);
|
||||
let mut events = cx.events(&project);
|
||||
|
||||
let fake_server = fake_servers.next().await.unwrap();
|
||||
assert_eq!(
|
||||
|
@ -1078,7 +1078,7 @@ async fn test_restarting_server_with_diagnostics_running(cx: &mut gpui2::TestApp
|
|||
project.update(cx, |project, cx| {
|
||||
project.restart_language_servers_for_buffers([buffer], cx);
|
||||
});
|
||||
let mut events = cx.subscribe(&project);
|
||||
let mut events = cx.events(&project);
|
||||
|
||||
// Simulate the newly started server sending more diagnostics.
|
||||
let fake_server = fake_servers.next().await.unwrap();
|
||||
|
@ -2788,6 +2788,7 @@ async fn test_rescan_and_remote_updates(cx: &mut gpui2::TestAppContext) {
|
|||
});
|
||||
|
||||
let remote = cx.update(|cx| Worktree::remote(1, 1, metadata, rpc.clone(), cx));
|
||||
|
||||
cx.executor().run_until_parked();
|
||||
|
||||
cx.update(|cx| {
|
||||
|
|
|
@ -4065,6 +4065,7 @@ impl WorktreeModelHandle for Model<Worktree> {
|
|||
fs.create_file(&root_path.join(file_name), Default::default())
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
cx.condition(&tree, |tree, _| tree.entry_for_path(file_name).is_some())
|
||||
.await;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue