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

fuse/nodefs: fix typo in fileless_test.

parent 8c0d11d4
...@@ -41,17 +41,16 @@ func TestNodeRead(t *testing.T) { ...@@ -41,17 +41,16 @@ func TestNodeRead(t *testing.T) {
t.Fatalf("TempDir: %v", err) t.Fatalf("TempDir: %v", err)
} }
root := newNodeReadNode([]byte("root")) root := newNodeReadNode(nil)
s, _, err := MountRoot(dir, root, nil) s, _, err := MountRoot(dir, root, nil)
if err != nil { if err != nil {
t.Fatalf("MountRoot: %v", err) t.Fatalf("MountRoot: %v", err)
} }
s.SetDebug(true)
go s.Serve()
defer s.Unmount() defer s.Unmount()
go s.Serve()
content, err := ioutil.ReadFile(dir + "/file") content, err := ioutil.ReadFile(dir + "/file")
if err != nil { if err != nil {
t.Fatalf("MountRoot: %v", err) t.Fatalf("ReadFile: %v", err)
} }
want := "file" want := "file"
if string(content) != want { if string(content) != want {
......
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