mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
sync: fix TestMoveEmptyDirectories so they work on backends which don't support DirModTimes
This commit is contained in:
@@ -370,9 +370,7 @@ func (r *Run) CheckDirectoryModTimes(t *testing.T, names ...string) {
|
||||
for _, name := range names {
|
||||
wantT := NewDirectory(ctx, t, r.Flocal, name).ModTime(ctx)
|
||||
got := NewDirectory(ctx, t, r.Fremote, name)
|
||||
gotT := got.ModTime(ctx)
|
||||
fs.Debugf(r.Fremote, "Testing directory mod time of %q: wantT=%v, gotT=%v", name, wantT, gotT)
|
||||
AssertTimeEqualWithPrecision(t, got.Remote(), wantT, gotT, fs.GetModifyWindow(ctx, r.Fremote, r.Flocal))
|
||||
CheckDirModTime(ctx, t, r.Fremote, got, wantT)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user