Commit 9fac2f30 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

fix(test): nil Blockstore

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent b88f0394
......@@ -4,9 +4,11 @@ import (
"strings"
"testing"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
sync "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync"
blocks "github.com/jbenet/go-ipfs/blocks"
blockstore "github.com/jbenet/go-ipfs/blocks/blockstore"
message "github.com/jbenet/go-ipfs/exchange/bitswap/message"
peer "github.com/jbenet/go-ipfs/peer"
testutil "github.com/jbenet/go-ipfs/util/testutil"
......@@ -21,7 +23,7 @@ func newPeerAndLedgermanager(idStr string) peerAndLedgermanager {
return peerAndLedgermanager{
Peer: testutil.NewPeerWithIDString(idStr),
//Strategy: New(true),
ls: NewLedgerManager(nil, context.TODO()),
ls: NewLedgerManager(blockstore.NewBlockstore(sync.MutexWrap(ds.NewMapDatastore())), context.TODO()),
}
}
......
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