mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
sync: fix TestMoveEmptyDirectories so they work on backends which don't support DirModTimes
This commit is contained in:
@ -340,8 +340,7 @@ func TestMoveEmptyDirectories(t *testing.T) {
|
||||
// Note that "sub dir" mod time is updated when file1 is deleted from it
|
||||
// So check it more manually
|
||||
got := fstest.NewDirectory(ctx, t, r.Fremote, "sub dir")
|
||||
gotT := got.ModTime(ctx)
|
||||
fstest.AssertTimeEqualWithPrecision(t, subDir.Remote(), subDirT, gotT, fs.GetModifyWindow(ctx, r.Fremote, r.Flocal))
|
||||
fstest.CheckDirModTime(ctx, t, r.Fremote, got, subDirT)
|
||||
}
|
||||
|
||||
// Test sync empty directories
|
||||
|
Reference in New Issue
Block a user