mirror of
https://github.com/wez/wezterm.git
synced 2024-09-19 18:57:59 +03:00
ssh: fixup test for centos8
``` thread 'e2e::sftp::canonicalize_should_either_return_resolved_path_or_error_if_missing' panicked at 'Unexpected result from canonicalize: Err(LibSsh(Sftp(SftpError(2))))', wezterm-ssh/tests/e2e/sftp.rs:615:14 ``` We can't currently match that error because the LibSsh SftError(x) error code is private.
This commit is contained in:
parent
d6ef3c67c5
commit
a745c2edc8
@ -611,8 +611,13 @@ async fn canonicalize_should_either_return_resolved_path_or_error_if_missing(
|
||||
.await;
|
||||
match result {
|
||||
Ok(_) => {}
|
||||
Err(SftpChannelError::Sftp(SftpError::NoSuchFile)) => {}
|
||||
x => panic!("Unexpected result from canonicalize: {:?}", x),
|
||||
Err(SftpChannelError::Sftp(SftpError::NoSuchFile))
|
||||
| Err(SftpChannelError::LibSsh(libssh_rs::Error::Sftp(_))) => {}
|
||||
x => panic!(
|
||||
"Unexpected result from canonicalize({}: {:?}",
|
||||
missing.path().display(),
|
||||
x
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user