mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 16:58:24 +01:00
acd: Skip test on FS which don't support ModifiedTime
This commit is contained in:
parent
dd8717797e
commit
fec16b0ac8
@ -346,6 +346,14 @@ func TestSyncAfterChangingFilesSizeOnly(t *testing.T) {
|
|||||||
|
|
||||||
// Sync after changing a file's contents, modtime but not length
|
// Sync after changing a file's contents, modtime but not length
|
||||||
func TestSyncAfterChangingContentsOnly(t *testing.T) {
|
func TestSyncAfterChangingContentsOnly(t *testing.T) {
|
||||||
|
if fremote.Precision() == fs.ModTimeNotSupported {
|
||||||
|
t.Logf("ModTimeNotSupported so forcing file to be a different size")
|
||||||
|
WriteFile("potato", "different size to make sure it syncs", t2)
|
||||||
|
err := fs.Sync(fremote, flocal)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Sync failed: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
WriteFile("potato", "SMALLER BUT SAME DATE", t2)
|
WriteFile("potato", "SMALLER BUT SAME DATE", t2)
|
||||||
err := fs.Sync(fremote, flocal)
|
err := fs.Sync(fremote, flocal)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user