mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 02:48:34 +00:00
Remove window when closing workspace in test
This commit is contained in:
parent
dba2facd23
commit
49f1f1c6c2
1 changed files with 3 additions and 1 deletions
|
@ -6527,7 +6527,8 @@ async fn test_basic_following(
|
||||||
cx_c.foreground().run_until_parked();
|
cx_c.foreground().run_until_parked();
|
||||||
let active_call_c = cx_c.read(ActiveCall::global);
|
let active_call_c = cx_c.read(ActiveCall::global);
|
||||||
let project_c = client_c.build_remote_project(project_id, cx_c).await;
|
let project_c = client_c.build_remote_project(project_id, cx_c).await;
|
||||||
let workspace_c = client_c.build_workspace(&project_c, cx_c).root(cx_c);
|
let window_c = client_c.build_workspace(&project_c, cx_c);
|
||||||
|
let workspace_c = window_c.root(cx_c);
|
||||||
active_call_c
|
active_call_c
|
||||||
.update(cx_c, |call, cx| call.set_location(Some(&project_c), cx))
|
.update(cx_c, |call, cx| call.set_location(Some(&project_c), cx))
|
||||||
.await
|
.await
|
||||||
|
@ -6643,6 +6644,7 @@ async fn test_basic_following(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Client C closes the project.
|
// Client C closes the project.
|
||||||
|
window_c.remove(cx_c);
|
||||||
cx_c.drop_last(workspace_c);
|
cx_c.drop_last(workspace_c);
|
||||||
|
|
||||||
// Clients A and B see that client B is following A, and client C is not present in the followers.
|
// Clients A and B see that client B is following A, and client C is not present in the followers.
|
||||||
|
|
Loading…
Reference in a new issue