Skip to content

Commit

Permalink
Merge pull request ipfs/kubo#6019 from ipfs/fix/unixfs-add-wrap
Browse files Browse the repository at this point in the history
coreapi unixfs: change Wrap logic to make more sense 

This commit was moved from ipfs/kubo@8c96e3b
  • Loading branch information
Stebalien committed Mar 23, 2019
2 parents ce0839e + fd536be commit 0a211b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gateway/core/corehttp/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
files "github.com/ipfs/go-ipfs-files"
path "github.com/ipfs/go-path"
iface "github.com/ipfs/interface-go-ipfs-core"
"github.com/ipfs/interface-go-ipfs-core/options"
nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"
ci "github.com/libp2p/go-libp2p-crypto"
id "github.com/libp2p/go-libp2p/p2p/protocol/identify"
Expand Down Expand Up @@ -253,7 +252,7 @@ func TestIPNSHostnameRedirect(t *testing.T) {
}),
})

k, err := api.Unixfs().Add(ctx, f1, options.Unixfs.Wrap(true))
k, err := api.Unixfs().Add(ctx, f1)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -346,7 +345,7 @@ func TestIPNSHostnameBacklinks(t *testing.T) {
})

// create /ipns/example.net/foo/
k, err := api.Unixfs().Add(ctx, f1, options.Unixfs.Wrap(true))
k, err := api.Unixfs().Add(ctx, f1)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 0a211b6

Please sign in to comment.