cache: fix dedupe on caches wrapping drives - fixes #4320

This implements the MergeDirs optional method.
This commit is contained in:
Nick Craig-Wood 2020-06-10 12:04:48 +01:00
parent d55053098f
commit 7e48ee8758
2 changed files with 15 additions and 1 deletions

View file

@ -18,7 +18,7 @@ func TestIntegration(t *testing.T) {
fstests.Run(t, &fstests.Opt{
RemoteName: "TestCache:",
NilObject: (*cache.Object)(nil),
UnimplementableFsMethods: []string{"PublicLink", "MergeDirs", "OpenWriterAt"},
UnimplementableFsMethods: []string{"PublicLink", "OpenWriterAt"},
UnimplementableObjectMethods: []string{"MimeType", "ID", "GetTier", "SetTier"},
SkipInvalidUTF8: true, // invalid UTF-8 confuses the cache
})