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-routing
Commits
9d3d61d3
Commit
9d3d61d3
authored
Jul 17, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mark other nodes in routing table on test-connect
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
d38793fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
dht/dht_test.go
dht/dht_test.go
+8
-0
No files found.
dht/dht_test.go
View file @
9d3d61d3
...
...
@@ -78,6 +78,14 @@ func connect(t *testing.T, ctx context.Context, a, b *IpfsDHT) {
if
err
:=
a
.
host
.
Connect
(
ctx
,
pi
);
err
!=
nil
{
t
.
Fatal
(
err
)
}
for
a
.
routingTable
.
Find
(
b
.
self
)
==
""
{
time
.
Sleep
(
time
.
Millisecond
*
5
)
}
for
b
.
routingTable
.
Find
(
a
.
self
)
==
""
{
time
.
Sleep
(
time
.
Millisecond
*
5
)
}
}
func
bootstrap
(
t
*
testing
.
T
,
ctx
context
.
Context
,
dhts
[]
*
IpfsDHT
)
{
...
...
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