Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-blockservice
Commits
fa646131
Commit
fa646131
authored
May 24, 2019
by
Hector Sanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
Method was renamed
parent
88ba1923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/mock.go
test/mock.go
+2
-2
No files found.
test/mock.go
View file @
fa646131
...
@@ -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
.
NewTestSession
Generator
(
net
)
sg
:=
testinstance
.
NewTestInstance
Generator
(
net
)
instances
:=
sg
.
Instances
(
n
)
instances
:=
sg
.
Instances
(
n
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment