mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
operations: fix TestMkdirModTime test
This was failing on backends that didn't support metadata but did support setting directory modtimes.
This commit is contained in:
@@ -1680,7 +1680,10 @@ func TestMkdirModTime(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
// Check the returned directory and one read from the listing
|
||||
fstest.CheckDirModTime(ctx, t, r.Fremote, newDst, t2)
|
||||
// newDst may be nil here depending on how the modtime was set
|
||||
if newDst != nil {
|
||||
fstest.CheckDirModTime(ctx, t, r.Fremote, newDst, t2)
|
||||
}
|
||||
fstest.CheckDirModTime(ctx, t, r.Fremote, fstest.NewDirectory(ctx, t, r.Fremote, name), t2)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user