sftpd: port to non deprecated pkg/sftp error types

see https://github.com/pkg/sftp/pull/304
This commit is contained in:
Nicola Murino
2019-10-14 22:44:57 +02:00
parent 2932dba5cc
commit f98a29a1e0
2 changed files with 43 additions and 43 deletions

View File

@@ -191,7 +191,7 @@ func TestSFTPCmdTargetPath(t *testing.T) {
User: u,
}
_, err := connection.getSFTPCmdTargetPath("invalid_path")
if err != sftp.ErrSshFxOpUnsupported {
if err != sftp.ErrSSHFxOpUnsupported {
t.Errorf("getSFTPCmdTargetPath must fal with the expected error: %v", err)
}
}