Commit 094ee880 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Use MountFileSystem in zipfs_test.

parent 52372fd9
...@@ -14,12 +14,9 @@ func TestZipFs(t *testing.T) { ...@@ -14,12 +14,9 @@ func TestZipFs(t *testing.T) {
t.Error("NewZipArchiveFileSystem failed:", err) t.Error("NewZipArchiveFileSystem failed:", err)
} }
connector := fuse.NewFileSystemConnector(zfs, nil)
mountPoint := fuse.MakeTempDir() mountPoint := fuse.MakeTempDir()
defer os.RemoveAll(mountPoint) defer os.RemoveAll(mountPoint)
state, _, err := fuse.MountFileSystem(mountPoint, zfs, nil)
state := fuse.NewMountState(connector)
state.Mount(mountPoint)
defer state.Unmount() defer state.Unmount()
state.Debug = true state.Debug = true
......
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