diff --git a/samples/cachingfs/caching_fs_test.go b/samples/cachingfs/caching_fs_test.go index 19cdf39..7e733a3 100644 --- a/samples/cachingfs/caching_fs_test.go +++ b/samples/cachingfs/caching_fs_test.go @@ -53,6 +53,10 @@ func (t *cachingFSTest) setUp( getattrTimeout time.Duration) { var err error + // We assert things about whether or not mtimes are cached, but writeback + // caching causes them to always be cached. Turn it off. + t.MountConfig.DisableWritebackCaching = true + // Create the file system. t.fs, err = cachingfs.NewCachingFS(lookupEntryTimeout, getattrTimeout) AssertEq(nil, err)