1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-29 21:04:23 +02:00

cache: disable unreliable internal tests

This commit is contained in:
remusb 2017-12-18 16:31:15 +02:00
parent 6b5989712f
commit 6f1ae00c7f

View File

@ -534,12 +534,14 @@ func readDataFromObj(t *testing.T, co fs.Object, offset, end int64, useSeek bool
} }
func cleanupFs(t *testing.T, f fs.Fs, b *cache.Persistent) { func cleanupFs(t *testing.T, f fs.Fs, b *cache.Persistent) {
t.Skip("FIXME disabled because it is unreliable")
err := f.Features().Purge() err := f.Features().Purge()
require.NoError(t, err) require.NoError(t, err)
b.Close() b.Close()
} }
func newLocalCacheCryptFs(t *testing.T, localRemote, cacheRemote, cryptRemote string, purge bool, cfg map[string]string) (fs.Fs, *cache.Persistent) { func newLocalCacheCryptFs(t *testing.T, localRemote, cacheRemote, cryptRemote string, purge bool, cfg map[string]string) (fs.Fs, *cache.Persistent) {
t.Skip("FIXME disabled because it is unreliable")
fstest.Initialise() fstest.Initialise()
dbPath := filepath.Join(fs.CacheDir, "cache-backend", cacheRemote+".db") dbPath := filepath.Join(fs.CacheDir, "cache-backend", cacheRemote+".db")
boltDb, err := cache.GetPersistent(dbPath, &cache.Features{PurgeDb: true}) boltDb, err := cache.GetPersistent(dbPath, &cache.Features{PurgeDb: true})
@ -626,6 +628,7 @@ func newLocalCacheCryptFs(t *testing.T, localRemote, cacheRemote, cryptRemote st
} }
func newLocalCacheFs(t *testing.T, localRemote, cacheRemote string, cfg map[string]string) (fs.Fs, *cache.Persistent) { func newLocalCacheFs(t *testing.T, localRemote, cacheRemote string, cfg map[string]string) (fs.Fs, *cache.Persistent) {
t.Skip("FIXME disabled because it is unreliable")
fstest.Initialise() fstest.Initialise()
dbPath := filepath.Join(fs.CacheDir, "cache-backend", cacheRemote+".db") dbPath := filepath.Join(fs.CacheDir, "cache-backend", cacheRemote+".db")
boltDb, err := cache.GetPersistent(dbPath, &cache.Features{PurgeDb: true}) boltDb, err := cache.GetPersistent(dbPath, &cache.Features{PurgeDb: true})