1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32:24 +08:00

fixed pin json marshal

This commit is contained in:
Juan Batiz-Benet
2014-10-22 02:55:22 -07:00
parent 5d86ce56ac
commit 4b01ad0b7c
4 changed files with 72 additions and 70 deletions

View File

@ -3,7 +3,7 @@ package pin
import (
"testing"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
bs "github.com/jbenet/go-ipfs/blockservice"
mdag "github.com/jbenet/go-ipfs/merkledag"
"github.com/jbenet/go-ipfs/util"
@ -18,7 +18,7 @@ func randNode() (*mdag.Node, util.Key) {
}
func TestPinnerBasic(t *testing.T) {
dstore := datastore.NewMapDatastore()
dstore := ds.NewMapDatastore()
bserv, err := bs.NewBlockService(dstore, nil)
if err != nil {
t.Fatal(err)
@ -103,7 +103,7 @@ func TestPinnerBasic(t *testing.T) {
// c should still be pinned under b
if !p.IsPinned(ck) {
t.Fatal("Recursive unpin fail.")
t.Fatal("Recursive / indirect unpin fail.")
}
err = p.Flush()