mirror of
https://github.com/rclone/rclone.git
synced 2026-01-21 03:43:26 +00:00
webdav: don't delete files on error - fixes #3263
Previous to this change rclone deleted a file if the upload failed half way through. After this change we only delete the upload if the --webdav-delete-on-error flag is set. We set this in the serve webdav tests to make them pass.
This commit is contained in:
@@ -62,11 +62,12 @@ func TestWebDav(t *testing.T) {
|
||||
|
||||
// Config for the backend we'll use to connect to the server
|
||||
config := configmap.Simple{
|
||||
"type": "webdav",
|
||||
"vendor": "other",
|
||||
"url": w.Server.URL(),
|
||||
"user": testUser,
|
||||
"pass": obscure.MustObscure(testPass),
|
||||
"type": "webdav",
|
||||
"vendor": "other",
|
||||
"url": w.Server.URL(),
|
||||
"user": testUser,
|
||||
"pass": obscure.MustObscure(testPass),
|
||||
"delete_on_error": "true",
|
||||
}
|
||||
|
||||
return config, func() {
|
||||
|
||||
Reference in New Issue
Block a user