1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 09:52:20 +08:00

remove testing imports from non testing code

rename bserv mock to mock_test

swap out testing.T for an interface
This commit is contained in:
Jeromy
2015-05-20 22:32:56 -07:00
committed by Juan Batiz-Benet
parent f39af41afc
commit 4a78a9729d
5 changed files with 19 additions and 12 deletions

View File

@ -16,6 +16,7 @@ import (
core "github.com/ipfs/go-ipfs/core"
coreunix "github.com/ipfs/go-ipfs/core/coreunix"
coremock "github.com/ipfs/go-ipfs/core/mock"
importer "github.com/ipfs/go-ipfs/importer"
chunk "github.com/ipfs/go-ipfs/importer/chunk"
dag "github.com/ipfs/go-ipfs/merkledag"
@ -47,7 +48,7 @@ func setupIpfsTest(t *testing.T, node *core.IpfsNode) (*core.IpfsNode, *fstest.M
var err error
if node == nil {
node, err = core.NewMockNode()
node, err = coremock.NewMockNode()
if err != nil {
t.Fatal(err)
}