mirror of https://github.com/rclone/rclone
bisync: fix koofr integration tests
Before this change, koofr failed certain bisync tests because it can't set mod time without deleting and re-uploading. This caused the "nothing to transfer" log to not get printed where expected (as it is only printed when there are 0 transfers, but koofr requires extra transfers to set modtime.) This change fixes the issue by ignoring the absence of the "nothing to transfer" log line on backends that return `fs.ErrorCantSetModTimeWithoutDelete` for `obj.SetModTime`.
This commit is contained in:
parent
ceaac2194c
commit
26b629f42f
|
|
@ -1029,6 +1029,9 @@ func (b *bisyncTest) checkPreReqs(ctx context.Context, opt *bisync.Options) (con
|
|||
if err == fs.ErrorCantSetModTime {
|
||||
b.t.Skip("skipping test as at least one remote does not support setting modtime")
|
||||
}
|
||||
if err == fs.ErrorCantSetModTimeWithoutDelete { // transfers stats expected to differ on this backend
|
||||
logReplacements = append(logReplacements, `^.*There was nothing to transfer.*$`, dropMe)
|
||||
}
|
||||
if !f.Features().IsLocal {
|
||||
time.Sleep(time.Second) // avoid GoogleCloudStorage Error 429 rateLimitExceeded
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue