@cryptotaxi247 / kubo / commits / 726e8c0db

unixfs: fix ls test for new add

This commit was moved from ipfs/interface-go-ipfs-core@91f8aac428155f9f302c3d6327c5f8659742013f This commit was moved from ipfs/boxo@bd1689b886cda8cd5095b711df1eba9d15cabc7f

Łukasz Magiera committed Mar 11, 2019 at 13:36 UTC 726e8c0db1b97af0b40f26ae6447662651d01ebc
1 file changed +2 -4
core/coreiface/tests/unixfs.go
+2 -4
@@ -724,10 +724,8 @@ func (tp *provider) TestLs(t *testing.T) {
724
725 r := strings.NewReader("content-of-file")
726 p, err := api.Unixfs().Add(ctx, files.NewMapDirectory(map[string]files.Node{
727 - "0": files.NewMapDirectory(map[string]files.Node{
728 - "name-of-file": files.NewReaderFile(r),
729 - "name-of-symlink": files.NewLinkFile("/foo/bar", nil),
730 - }),
727 + "name-of-file": files.NewReaderFile(r),
728 + "name-of-symlink": files.NewLinkFile("/foo/bar", nil),
729 }))
730 if err != nil {
731 t.Fatal(err)