mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +08:00
Merge pull request #1330 from ipfs/fix/test-deps
fix up some dependencies to avoid circular record deps
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
package blockservice
|
package bstest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
@ -12,6 +12,7 @@ import (
|
|||||||
blockstore "github.com/ipfs/go-ipfs/blocks/blockstore"
|
blockstore "github.com/ipfs/go-ipfs/blocks/blockstore"
|
||||||
blocksutil "github.com/ipfs/go-ipfs/blocks/blocksutil"
|
blocksutil "github.com/ipfs/go-ipfs/blocks/blocksutil"
|
||||||
key "github.com/ipfs/go-ipfs/blocks/key"
|
key "github.com/ipfs/go-ipfs/blocks/key"
|
||||||
|
. "github.com/ipfs/go-ipfs/blockservice"
|
||||||
offline "github.com/ipfs/go-ipfs/exchange/offline"
|
offline "github.com/ipfs/go-ipfs/exchange/offline"
|
||||||
u "github.com/ipfs/go-ipfs/util"
|
u "github.com/ipfs/go-ipfs/util"
|
||||||
)
|
)
|
@ -1,6 +1,7 @@
|
|||||||
package blockservice
|
package bstest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
. "github.com/ipfs/go-ipfs/blockservice"
|
||||||
bitswap "github.com/ipfs/go-ipfs/exchange/bitswap"
|
bitswap "github.com/ipfs/go-ipfs/exchange/bitswap"
|
||||||
tn "github.com/ipfs/go-ipfs/exchange/bitswap/testnet"
|
tn "github.com/ipfs/go-ipfs/exchange/bitswap/testnet"
|
||||||
mockrouting "github.com/ipfs/go-ipfs/routing/mock"
|
mockrouting "github.com/ipfs/go-ipfs/routing/mock"
|
@ -13,8 +13,8 @@ import (
|
|||||||
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
||||||
bstore "github.com/ipfs/go-ipfs/blocks/blockstore"
|
bstore "github.com/ipfs/go-ipfs/blocks/blockstore"
|
||||||
key "github.com/ipfs/go-ipfs/blocks/key"
|
key "github.com/ipfs/go-ipfs/blocks/key"
|
||||||
blockservice "github.com/ipfs/go-ipfs/blockservice"
|
|
||||||
bserv "github.com/ipfs/go-ipfs/blockservice"
|
bserv "github.com/ipfs/go-ipfs/blockservice"
|
||||||
|
bstest "github.com/ipfs/go-ipfs/blockservice/test"
|
||||||
offline "github.com/ipfs/go-ipfs/exchange/offline"
|
offline "github.com/ipfs/go-ipfs/exchange/offline"
|
||||||
imp "github.com/ipfs/go-ipfs/importer"
|
imp "github.com/ipfs/go-ipfs/importer"
|
||||||
chunk "github.com/ipfs/go-ipfs/importer/chunk"
|
chunk "github.com/ipfs/go-ipfs/importer/chunk"
|
||||||
@ -151,7 +151,7 @@ func TestBatchFetchDupBlock(t *testing.T) {
|
|||||||
|
|
||||||
func runBatchFetchTest(t *testing.T, read io.Reader) {
|
func runBatchFetchTest(t *testing.T, read io.Reader) {
|
||||||
var dagservs []DAGService
|
var dagservs []DAGService
|
||||||
for _, bsi := range blockservice.Mocks(t, 5) {
|
for _, bsi := range bstest.Mocks(t, 5) {
|
||||||
dagservs = append(dagservs, NewDAGService(bsi))
|
dagservs = append(dagservs, NewDAGService(bsi))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user