Commit 91f8aac4 authored by Łukasz Magiera's avatar Łukasz Magiera

unixfs: fix ls test for new add

parent 56944d64
...@@ -724,10 +724,8 @@ func (tp *provider) TestLs(t *testing.T) { ...@@ -724,10 +724,8 @@ func (tp *provider) TestLs(t *testing.T) {
r := strings.NewReader("content-of-file") r := strings.NewReader("content-of-file")
p, err := api.Unixfs().Add(ctx, files.NewMapDirectory(map[string]files.Node{ p, err := api.Unixfs().Add(ctx, files.NewMapDirectory(map[string]files.Node{
"0": files.NewMapDirectory(map[string]files.Node{ "name-of-file": files.NewReaderFile(r),
"name-of-file": files.NewReaderFile(r), "name-of-symlink": files.NewLinkFile("/foo/bar", nil),
"name-of-symlink": files.NewLinkFile("/foo/bar", nil),
}),
})) }))
if err != nil { if 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