Commit 5cf1ea2d authored by Brian Tiger Chow's avatar Brian Tiger Chow

feat(bs/testnet) use delay in virtual network

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 0c7694cb
......@@ -5,12 +5,13 @@ import (
bitswap "github.com/jbenet/go-ipfs/exchange/bitswap"
tn "github.com/jbenet/go-ipfs/exchange/bitswap/testnet"
"github.com/jbenet/go-ipfs/routing/mock"
mock "github.com/jbenet/go-ipfs/routing/mock"
delay "github.com/jbenet/go-ipfs/util/delay"
)
// Mocks returns |n| connected mock Blockservices
func Mocks(t *testing.T, n int) []*BlockService {
net := tn.VirtualNetwork()
net := tn.VirtualNetwork(delay.Fixed(0))
rs := mock.VirtualRoutingServer()
sg := bitswap.NewSessionGenerator(net, rs)
......
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