Commit fa646131 authored by Hector Sanjuan's avatar Hector Sanjuan

Fix tests

Method was renamed
parent 88ba1923
...@@ -3,7 +3,7 @@ package bstest ...@@ -3,7 +3,7 @@ package bstest
import ( import (
. "github.com/ipfs/go-blockservice" . "github.com/ipfs/go-blockservice"
bitswap "github.com/ipfs/go-bitswap" testinstance "github.com/ipfs/go-bitswap/testinstance"
tn "github.com/ipfs/go-bitswap/testnet" tn "github.com/ipfs/go-bitswap/testnet"
delay "github.com/ipfs/go-ipfs-delay" delay "github.com/ipfs/go-ipfs-delay"
mockrouting "github.com/ipfs/go-ipfs-routing/mock" mockrouting "github.com/ipfs/go-ipfs-routing/mock"
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
// Mocks returns |n| connected mock Blockservices // Mocks returns |n| connected mock Blockservices
func Mocks(n int) []BlockService { func Mocks(n int) []BlockService {
net := tn.VirtualNetwork(mockrouting.NewServer(), delay.Fixed(0)) net := tn.VirtualNetwork(mockrouting.NewServer(), delay.Fixed(0))
sg := bitswap.NewTestSessionGenerator(net) sg := testinstance.NewTestInstanceGenerator(net)
instances := sg.Instances(n) instances := sg.Instances(n)
......
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