From 32e02bd367d5f14e1ffc3c16ad4448207cc3c967 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 6 Apr 2018 16:27:19 +0100 Subject: [PATCH] fstests: Fix TestObjectRemove failures This was failing because TestPublicLink was causing the file to be modified with Google drive. --- fstest/fstests/fstests.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go index c0e19e0d3..91b281fce 100644 --- a/fstest/fstests/fstests.go +++ b/fstest/fstests/fstests.go @@ -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