mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 05:12:40 +03:00
wezterm-ssh: avoid configuration default config files in tests
This commit is contained in:
parent
d4d5c03b57
commit
44c1335856
@ -434,7 +434,10 @@ impl std::ops::DerefMut for SessionWithSshd {
|
|||||||
pub async fn session(#[default(Config::new())] mut config: Config, sshd: Sshd) -> SessionWithSshd {
|
pub async fn session(#[default(Config::new())] mut config: Config, sshd: Sshd) -> SessionWithSshd {
|
||||||
let port = sshd.port;
|
let port = sshd.port;
|
||||||
|
|
||||||
config.add_default_config_files();
|
// Do not add the default config files; they take the config of the
|
||||||
|
// user that is running the tests which can vary wildly and have
|
||||||
|
// inappropriate configuration that disrupts the tests.
|
||||||
|
// NO: config.add_default_config_files();
|
||||||
|
|
||||||
// Load our config to point to ourselves, using current sshd instance's port,
|
// Load our config to point to ourselves, using current sshd instance's port,
|
||||||
// generated identity file, and host file
|
// generated identity file, and host file
|
||||||
|
Loading…
Reference in New Issue
Block a user