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

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