windows: fix test cases

This commit is contained in:
Nicola Murino
2019-07-27 21:19:30 +02:00
parent c9e6fa0dd6
commit e177366be9
2 changed files with 7 additions and 2 deletions

View File

@@ -737,7 +737,7 @@ func TestBandwidthAndConnections(t *testing.T) {
t.Errorf("download bandwidth throttling not respected, elapsed: %v, wanted: %v", elapsed, wantedDownloadElapsed)
}
// test disconnection
c = sftpUploadNonBlocking(testFilePath, testFileName, testFileSize, client)
c = sftpUploadNonBlocking(testFilePath, testFileName+"_partial", testFileSize, client)
waitForActiveTransfer()
time.Sleep(100 * time.Millisecond)
sftpd.CheckIdleConnections()