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
interface-go-dms3-core
Commits
0d5ec37a
Unverified
Commit
0d5ec37a
authored
Apr 16, 2019
by
Steven Allen
Committed by
GitHub
Apr 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28 from ipfs/fix/dht-test
tests: fix a bunch of small test lints/issues
parents
c140b0fa
29b26f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/dht.go
tests/dht.go
+6
-6
No files found.
tests/dht.go
View file @
0d5ec37a
...
...
@@ -130,17 +130,17 @@ func (tp *provider) TestDhtProvide(t *testing.T) {
t
.
Fatal
(
err
)
}
provider
:=
<-
out
_
,
ok
:=
<-
out
if
ok
{
t
.
Fatal
(
"did not expect to find any providers"
)
}
self0
,
err
:=
apis
[
0
]
.
Key
()
.
Self
(
ctx
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
if
provider
.
ID
.
String
()
!=
"<peer.ID >"
{
t
.
Errorf
(
"got wrong provider: %s != %s"
,
provider
.
ID
.
String
(),
self0
.
ID
()
.
String
())
}
err
=
apis
[
0
]
.
Dht
()
.
Provide
(
ctx
,
p
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -151,7 +151,7 @@ func (tp *provider) TestDhtProvide(t *testing.T) {
t
.
Fatal
(
err
)
}
provider
=
<-
out
provider
:
=
<-
out
if
provider
.
ID
.
String
()
!=
self0
.
ID
()
.
String
()
{
t
.
Errorf
(
"got wrong provider: %s != %s"
,
provider
.
ID
.
String
(),
self0
.
ID
()
.
String
())
...
...
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