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-dms3
Commits
a9573058
Commit
a9573058
authored
10 years ago
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refac(integrationtest) remove core.ConfigOption cast in tests
parent
d0f9be56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/integration/three_legged_cat_test.go
test/integration/three_legged_cat_test.go
+3
-3
No files found.
test/integration/three_legged_cat_test.go
View file @
a9573058
...
...
@@ -80,17 +80,17 @@ func RunThreeLeggedCat(data []byte, conf testutil.LatencyConfig) error {
if
len
(
peers
)
<
numPeers
{
return
errors
.
New
(
"test initialization error"
)
}
bootstrap
,
err
:=
core
.
NewIPFSNode
(
ctx
,
core
.
ConfigOption
(
MocknetTestRepo
(
peers
[
2
],
mn
.
Host
(
peers
[
2
]),
conf
))
)
bootstrap
,
err
:=
core
.
NewIPFSNode
(
ctx
,
MocknetTestRepo
(
peers
[
2
],
mn
.
Host
(
peers
[
2
]),
conf
))
if
err
!=
nil
{
return
err
}
defer
bootstrap
.
Close
()
adder
,
err
:=
core
.
NewIPFSNode
(
ctx
,
core
.
ConfigOption
(
MocknetTestRepo
(
peers
[
0
],
mn
.
Host
(
peers
[
0
]),
conf
))
)
adder
,
err
:=
core
.
NewIPFSNode
(
ctx
,
MocknetTestRepo
(
peers
[
0
],
mn
.
Host
(
peers
[
0
]),
conf
))
if
err
!=
nil
{
return
err
}
defer
adder
.
Close
()
catter
,
err
:=
core
.
NewIPFSNode
(
ctx
,
core
.
ConfigOption
(
MocknetTestRepo
(
peers
[
1
],
mn
.
Host
(
peers
[
1
]),
conf
))
)
catter
,
err
:=
core
.
NewIPFSNode
(
ctx
,
MocknetTestRepo
(
peers
[
1
],
mn
.
Host
(
peers
[
1
]),
conf
))
if
err
!=
nil
{
return
err
}
...
...
This diff is collapsed.
Click to expand it.
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