Fixed broken tests using Mount.

geesefs-0-30-9
Aaron Jacobs 2015-03-17 15:27:40 +11:00
parent 8adb300b78
commit c713695871
3 changed files with 5 additions and 8 deletions

View File

@ -60,7 +60,7 @@ func (t *cachingFSTest) setUp(
AssertEq(nil, err)
// Mount it.
t.mfs, err = fuse.Mount(t.dir, t.fs)
t.mfs, err = fuse.Mount(t.dir, t.fs, &fuse.MountConfig{})
AssertEq(nil, err)
err = t.mfs.WaitForReady(context.Background())

View File

@ -65,7 +65,7 @@ func (t *HelloFSTest) SetUp(ti *TestInfo) {
Clock: &t.clock,
}
if t.mfs, err = fuse.Mount(mountPoint, fs); err != nil {
if t.mfs, err = fuse.Mount(mountPoint, fs, &fuse.MountConfig{}); err != nil {
panic("Mount: " + err.Error())
}

View File

@ -27,7 +27,6 @@ import (
"testing"
"time"
"github.com/jacobsa/bazilfuse"
"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/fusetesting"
"github.com/jacobsa/fuse/samples/memfs"
@ -114,11 +113,9 @@ func (t *MemFSTest) SetUp(ti *TestInfo) {
// Mount a file system.
fs := memfs.NewMemFS(currentUid(), currentGid(), &t.clock)
t.mfs, err = fuse.Mount(
mountPoint,
fs,
bazilfuse.DefaultPermissions())
// TODO(jacobsa): Add a default_permissions field to the config and use it
// here.
t.mfs, err = fuse.Mount(mountPoint, fs, &fuse.MountConfig{})
if err != nil {
panic("Mount: " + err.Error())
}