vfs: fix tests after --dir-perms changes

This was introduced in 554ee0d963
This commit is contained in:
Nick Craig-Wood 2019-01-09 09:49:34 +00:00
parent 1433558c01
commit 7ee7bc87ae

View File

@ -97,7 +97,9 @@ func TestVFSNew(t *testing.T) {
// Check making a VFS with nil options
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)
// Check the initialisation