Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit b22a868

Browse files
Merge pull request #75 from ipfs/fix-staticcheck
fix staticcheck
2 parents 6f1e7bb + 9659d2a commit b22a868

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/mock.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
package bstest
22

33
import (
4-
. "github.com/ipfs/go-blockservice"
5-
64
testinstance "github.com/ipfs/go-bitswap/testinstance"
75
tn "github.com/ipfs/go-bitswap/testnet"
6+
"github.com/ipfs/go-blockservice"
87
delay "github.com/ipfs/go-ipfs-delay"
98
mockrouting "github.com/ipfs/go-ipfs-routing/mock"
109
)
1110

1211
// Mocks returns |n| connected mock Blockservices
13-
func Mocks(n int) []BlockService {
12+
func Mocks(n int) []blockservice.BlockService {
1413
net := tn.VirtualNetwork(mockrouting.NewServer(), delay.Fixed(0))
1514
sg := testinstance.NewTestInstanceGenerator(net)
1615

1716
instances := sg.Instances(n)
1817

19-
var servs []BlockService
18+
var servs []blockservice.BlockService
2019
for _, i := range instances {
21-
servs = append(servs, New(i.Blockstore(), i.Exchange))
20+
servs = append(servs, blockservice.New(i.Blockstore(), i.Exchange))
2221
}
2322
return servs
2423
}

0 commit comments

Comments
 (0)