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-unixfs
Commits
2149f8f4
Commit
2149f8f4
authored
Jan 19, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
494ed8fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
test/epictest/addcat_test.go
test/epictest/addcat_test.go
+2
-0
test/epictest/three_legged_cat_test.go
test/epictest/three_legged_cat_test.go
+3
-0
No files found.
test/epictest/addcat_test.go
View file @
2149f8f4
...
...
@@ -108,10 +108,12 @@ func DirectAddCat(data []byte, conf testutil.LatencyConfig) error {
if
err
!=
nil
{
return
err
}
defer
adder
.
Close
()
catter
,
err
:=
core
.
NewIPFSNode
(
ctx
,
core
.
ConfigOption
(
MocknetTestRepo
(
peers
[
1
],
mn
.
Host
(
peers
[
1
]),
conf
)))
if
err
!=
nil
{
return
err
}
defer
catter
.
Close
()
catter
.
Bootstrap
(
ctx
,
[]
peer
.
PeerInfo
{
adder
.
Peerstore
.
PeerInfo
(
adder
.
Identity
)})
adder
.
Bootstrap
(
ctx
,
[]
peer
.
PeerInfo
{
catter
.
Peerstore
.
PeerInfo
(
catter
.
Identity
)})
...
...
test/epictest/three_legged_cat_test.go
View file @
2149f8f4
...
...
@@ -51,14 +51,17 @@ func RunThreeLeggedCat(data []byte, conf testutil.LatencyConfig) error {
if
err
!=
nil
{
return
err
}
defer
adder
.
Close
()
catter
,
err
:=
core
.
NewIPFSNode
(
ctx
,
core
.
ConfigOption
(
MocknetTestRepo
(
peers
[
1
],
mn
.
Host
(
peers
[
1
]),
conf
)))
if
err
!=
nil
{
return
err
}
defer
catter
.
Close
()
bootstrap
,
err
:=
core
.
NewIPFSNode
(
ctx
,
core
.
ConfigOption
(
MocknetTestRepo
(
peers
[
2
],
mn
.
Host
(
peers
[
2
]),
conf
)))
if
err
!=
nil
{
return
err
}
defer
bootstrap
.
Close
()
boostrapInfo
:=
bootstrap
.
Peerstore
.
PeerInfo
(
bootstrap
.
PeerHost
.
ID
())
adder
.
Bootstrap
(
ctx
,
[]
peer
.
PeerInfo
{
boostrapInfo
})
catter
.
Bootstrap
(
ctx
,
[]
peer
.
PeerInfo
{
boostrapInfo
})
...
...
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