Commit e50569a4 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/test: update for Debug convention

parent 2982f4ec
......@@ -36,7 +36,7 @@ func TestDeleteNotify(t *testing.T) {
fs := fuse.NewMemNodeFs(dir + "/backing")
conn := fuse.NewFileSystemConnector(fs,
&fuse.FileSystemOptions{PortableInodes: true})
state := fuse.NewMountState(conn)
state := fuse.NewMountState(conn.RawFS())
mnt := dir + "/mnt"
err = os.Mkdir(mnt, 0755)
if err != nil {
......
......@@ -84,14 +84,13 @@ func NewTestCase(t *testing.T) *testCase {
AttrTimeout: testTtl,
NegativeTimeout: 0.0,
})
rfs = me.connector
rfs = fuse.NewLockingRawFileSystem(rfs)
rfs = fuse.NewLockingRawFileSystem(me.connector)
me.connector.Debug = fuse.VerboseTest()
me.connector.SetDebug(fuse.VerboseTest())
me.state = fuse.NewMountState(rfs)
me.state.Mount(me.mnt, nil)
me.state.Debug = fuse.VerboseTest()
me.state.SetDebug(fuse.VerboseTest())
// Unthreaded, but in background.
go me.state.Loop()
......
......@@ -64,7 +64,7 @@ func NewNotifyTest(t *testing.T) *NotifyTest {
if err != nil {
t.Fatalf("MountNodeFileSystem failed: %v", err)
}
me.state.Debug = fuse.VerboseTest()
me.state.SetDebug(fuse.VerboseTest())
go me.state.Loop()
return me
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment