Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
30e4db24
Unverified
Commit
30e4db24
authored
6 years ago
by
Steven Allen
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #463 from libp2p/fix/basic-host-test
fix buggy addr equal in test
parents
7eaeeaa9
63256192
master
fix/473
punching
v6.0.23
v6.0.22
v6.0.21
v6.0.20
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p2p/host/basic/basic_host_test.go
+1
-1
p2p/host/basic/basic_host_test.go
with
1 addition
and
1 deletion
+1
-1
p2p/host/basic/basic_host_test.go
View file @
30e4db24
...
...
@@ -83,7 +83,7 @@ func TestHostAddrsFactory(t *testing.T) {
if
len
(
addrs
)
!=
1
{
t
.
Fatalf
(
"expected 1 addr, got %d"
,
len
(
addrs
))
}
if
addrs
[
0
]
!=
maddr
{
if
!
addrs
[
0
]
.
Equal
(
maddr
)
{
t
.
Fatalf
(
"expected %s, got %s"
,
maddr
.
String
(),
addrs
[
0
]
.
String
())
}
}
...
...
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
Menu
Projects
Groups
Snippets
Help