mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 03:48:27 +08:00
cache: disable unreliable internal tests
This commit is contained in:
parent
6b5989712f
commit
6f1ae00c7f
3
cache/cache_internal_test.go
vendored
3
cache/cache_internal_test.go
vendored
|
@ -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) {
|
||||
t.Skip("FIXME disabled because it is unreliable")
|
||||
err := f.Features().Purge()
|
||||
require.NoError(t, err)
|
||||
b.Close()
|
||||
}
|
||||
|
||||
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()
|
||||
dbPath := filepath.Join(fs.CacheDir, "cache-backend", cacheRemote+".db")
|
||||
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) {
|
||||
t.Skip("FIXME disabled because it is unreliable")
|
||||
fstest.Initialise()
|
||||
dbPath := filepath.Join(fs.CacheDir, "cache-backend", cacheRemote+".db")
|
||||
boltDb, err := cache.GetPersistent(dbPath, &cache.Features{PurgeDb: true})
|
||||
|
|
Loading…
Reference in New Issue
Block a user