fstests: Fix TestObjectRemove failures

This was failing because TestPublicLink was causing the file to be
modified with Google drive.
This commit is contained in:
Nick Craig-Wood 2018-04-06 16:27:19 +01:00
parent c749cf8d99
commit 32e02bd367

View File

@ -1010,7 +1010,8 @@ func TestObjectRemove(t *testing.T) {
obj := findObject(t, file1.Path)
err := obj.Remove()
require.NoError(t, err)
fstest.CheckListing(t, remote, []fstest.Item{file2})
// check listing without modtime as TestPublicLink may change the modtime
fstest.CheckListingWithPrecision(t, remote, []fstest.Item{file2}, nil, fs.ModTimeNotSupported)
}
// TestFsPutStream tests uploading files when size is not known in advance