Skip to content

Commit c2b7456

Browse files
committedJun 3, 2015
fix up some dependencies to avoid circular record deps
1 parent 18297e2 commit c2b7456

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
 

‎blockservice/blocks_test.go ‎blockservice/test/blocks_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package blockservice
1+
package bstest
22

33
import (
44
"bytes"
@@ -12,6 +12,7 @@ import (
1212
blockstore "github.com/ipfs/go-ipfs/blocks/blockstore"
1313
blocksutil "github.com/ipfs/go-ipfs/blocks/blocksutil"
1414
key "github.com/ipfs/go-ipfs/blocks/key"
15+
. "github.com/ipfs/go-ipfs/blockservice"
1516
offline "github.com/ipfs/go-ipfs/exchange/offline"
1617
u "github.com/ipfs/go-ipfs/util"
1718
)

‎blockservice/mock.go ‎blockservice/test/mock.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
package blockservice
1+
package bstest
22

33
import (
4+
. "github.com/ipfs/go-ipfs/blockservice"
45
bitswap "github.com/ipfs/go-ipfs/exchange/bitswap"
56
tn "github.com/ipfs/go-ipfs/exchange/bitswap/testnet"
67
mockrouting "github.com/ipfs/go-ipfs/routing/mock"

‎merkledag/merkledag_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
1414
bstore "github.com/ipfs/go-ipfs/blocks/blockstore"
1515
key "github.com/ipfs/go-ipfs/blocks/key"
16-
blockservice "github.com/ipfs/go-ipfs/blockservice"
1716
bserv "github.com/ipfs/go-ipfs/blockservice"
17+
bstest "github.com/ipfs/go-ipfs/blockservice/test"
1818
offline "github.com/ipfs/go-ipfs/exchange/offline"
1919
imp "github.com/ipfs/go-ipfs/importer"
2020
chunk "github.com/ipfs/go-ipfs/importer/chunk"
@@ -151,7 +151,7 @@ func TestBatchFetchDupBlock(t *testing.T) {
151151

152152
func runBatchFetchTest(t *testing.T, read io.Reader) {
153153
var dagservs []DAGService
154-
for _, bsi := range blockservice.Mocks(t, 5) {
154+
for _, bsi := range bstest.Mocks(t, 5) {
155155
dagservs = append(dagservs, NewDAGService(bsi))
156156
}
157157

0 commit comments

Comments
 (0)
Please sign in to comment.