mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
simplify scp upload code and add some test cases
This commit is contained in:
@@ -436,7 +436,7 @@ func TestSCPCommandHandleErrors(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestRecursiveDownloadErrors(t *testing.T) {
|
||||
func TestSCPRecursiveDownloadErrors(t *testing.T) {
|
||||
connection := Connection{}
|
||||
buf := make([]byte, 65535)
|
||||
stdErrBuf := make([]byte, 65535)
|
||||
@@ -475,7 +475,7 @@ func TestRecursiveDownloadErrors(t *testing.T) {
|
||||
os.Remove(path)
|
||||
}
|
||||
|
||||
func TestRecursiveUploadErrors(t *testing.T) {
|
||||
func TestSCPRecursiveUploadErrors(t *testing.T) {
|
||||
connection := Connection{}
|
||||
buf := make([]byte, 65535)
|
||||
stdErrBuf := make([]byte, 65535)
|
||||
|
||||
Reference in New Issue
Block a user