mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 22:22:21 +08:00
vfs: fix tests after --dir-perms changes
This was introduced in 554ee0d963
This commit is contained in:
parent
1433558c01
commit
7ee7bc87ae
|
@ -97,7 +97,9 @@ func TestVFSNew(t *testing.T) {
|
||||||
|
|
||||||
// Check making a VFS with nil options
|
// Check making a VFS with nil options
|
||||||
vfs := New(r.Fremote, nil)
|
vfs := New(r.Fremote, nil)
|
||||||
assert.Equal(t, vfs.Opt, DefaultOpt)
|
var defaultOpt = DefaultOpt
|
||||||
|
defaultOpt.DirPerms |= os.ModeDir
|
||||||
|
assert.Equal(t, vfs.Opt, defaultOpt)
|
||||||
assert.Equal(t, vfs.f, r.Fremote)
|
assert.Equal(t, vfs.f, r.Fremote)
|
||||||
|
|
||||||
// Check the initialisation
|
// Check the initialisation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user