1
0
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:
Nick Craig-Wood
2024-03-01 10:56:48 +00:00
parent 6e28edeb9a
commit be39e99918
3 changed files with 6 additions and 5 deletions

View File

@@ -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)
}
}