mirror of
https://github.com/rclone/rclone
synced 2025-03-26 09:42:45 +01:00
vfs: only run TestRWCacheRename on remotes which can rename
This fixes the 1fichier integration tests.
This commit is contained in:
parent
89634795b0
commit
95c83b37fb
@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/rclone/rclone/fs"
|
"github.com/rclone/rclone/fs"
|
||||||
|
"github.com/rclone/rclone/fs/operations"
|
||||||
"github.com/rclone/rclone/fstest"
|
"github.com/rclone/rclone/fstest"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
@ -702,6 +703,10 @@ func TestRWCacheRename(t *testing.T) {
|
|||||||
r := fstest.NewRun(t)
|
r := fstest.NewRun(t)
|
||||||
defer r.Finalise()
|
defer r.Finalise()
|
||||||
|
|
||||||
|
if !operations.CanServerSideMove(r.Fremote) {
|
||||||
|
t.Skip("skip as can't rename files")
|
||||||
|
}
|
||||||
|
|
||||||
opt := DefaultOpt
|
opt := DefaultOpt
|
||||||
opt.CacheMode = CacheModeFull
|
opt.CacheMode = CacheModeFull
|
||||||
vfs := New(r.Fremote, &opt)
|
vfs := New(r.Fremote, &opt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user