SSH Remoting: Fix reconnects (#19485)
Before this change messages could be lost on reconnect, now they will not be. Release Notes: - SSH Remoting: make reconnects smoother --------- Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
1ae30f5813
commit
92c29be74c
10 changed files with 466 additions and 198 deletions
|
@ -26,7 +26,7 @@ async fn test_sharing_an_ssh_remote_project(
|
|||
.await;
|
||||
|
||||
// Set up project on remote FS
|
||||
let (client_ssh, server_ssh) = SshRemoteClient::fake(cx_a, server_cx);
|
||||
let (port, server_ssh) = SshRemoteClient::fake_server(cx_a, server_cx);
|
||||
let remote_fs = FakeFs::new(server_cx.executor());
|
||||
remote_fs
|
||||
.insert_tree(
|
||||
|
@ -67,6 +67,7 @@ async fn test_sharing_an_ssh_remote_project(
|
|||
)
|
||||
});
|
||||
|
||||
let client_ssh = SshRemoteClient::fake_client(port, cx_a).await;
|
||||
let (project_a, worktree_id) = client_a
|
||||
.build_ssh_project("/code/project1", client_ssh, cx_a)
|
||||
.await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue