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

fs: cleanup after TestForget

Change-Id: Ie2aeb012346b2fbcc32de09ea05b39069291d803
parent 18e94a3c
...@@ -83,13 +83,14 @@ func TestForget(t *testing.T) { ...@@ -83,13 +83,14 @@ func TestForget(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
defer os.RemoveAll(dir)
rawFS := NewNodeFS(root, options) rawFS := NewNodeFS(root, options)
server, err := fuse.NewServer(rawFS, dir, &options.MountOptions) server, err := fuse.NewServer(rawFS, dir, &options.MountOptions)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
defer server.Unmount()
go server.Serve() go server.Serve()
if err := server.WaitMount(); err != nil { if err := server.WaitMount(); err != nil {
t.Fatal(err) t.Fatal(err)
......
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