1
1
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:
Wez Furlong 2024-07-13 06:39:11 -07:00
parent d4d5c03b57
commit 44c1335856
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -434,7 +434,10 @@ impl std::ops::DerefMut for SessionWithSshd {
pub async fn session(#[default(Config::new())] mut config: Config, sshd: Sshd) -> SessionWithSshd {
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,
// generated identity file, and host file