mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 02:09:55 +08:00
operations: fix TestSetDirModTime for backends with SetDirModTime but not Metadata
This commit is contained in:
parent
1693d7ad0f
commit
692af42858
|
@ -1748,6 +1748,9 @@ func TestSetDirModTime(t *testing.T) {
|
||||||
require.NotNil(t, newDst)
|
require.NotNil(t, newDst)
|
||||||
|
|
||||||
// Check the returned directory and one read from the listing
|
// Check the returned directory and one read from the listing
|
||||||
|
// The modtime will only be correct on newDst if it had a SetModTime method
|
||||||
|
if _, ok := newDst.(fs.SetModTimer); ok {
|
||||||
fstest.CheckDirModTime(ctx, t, r.Fremote, newDst, t2)
|
fstest.CheckDirModTime(ctx, t, r.Fremote, newDst, t2)
|
||||||
|
}
|
||||||
fstest.CheckDirModTime(ctx, t, r.Fremote, fstest.NewDirectory(ctx, t, r.Fremote, name), t2)
|
fstest.CheckDirModTime(ctx, t, r.Fremote, fstest.NewDirectory(ctx, t, r.Fremote, name), t2)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user