remote: Introduce a proper mock remote connection (#46337)
Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
1 parent
fb5df4d615
commit
b964784d3d
22 files changed
+426
-254
No files matched your search
@@ -59,7 +59,9 @@ impl DebugAdapterClient {
|
||||
|
||||
pub fn should_reconnect_for_ssh(&self) -> bool {
|
||||
self.transport_delegate.tcp_arguments().is_some()
|
||||
&& self.binary.command.as_deref() == Some("ssh")
|
||||
&& (self.binary.command.as_deref() == Some("ssh")
|
||||
|| (cfg!(feature = "test-support")
|
||||
&& self.binary.command.as_deref() == Some("mock")))
|
||||
}
|
||||
|
||||
pub async fn connect(
|
||||
|
||||
@@ -221,10 +221,7 @@ impl TransportDelegate {
|
||||
}));
|
||||
}
|
||||
|
||||
{
|
||||
let mut lock = self.server_tx.lock().await;
|
||||
*lock = Some(server_tx.clone());
|
||||
}
|
||||
*self.server_tx.lock().await = Some(server_tx.clone());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user