Skip to content
GitLab
Menu
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
dcb8fd28
Commit
dcb8fd28
authored
Oct 20, 2018
by
vyzo
Browse files
fix inverted address selection logic in test
parent
ee69383c
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2p/host/relay/autorelay_test.go
View file @
dcb8fd28
...
...
@@ -160,7 +160,7 @@ func TestAutoRelay(t *testing.T) {
haveRelay
:=
false
for
_
,
addr
:=
range
h3
.
Addrs
()
{
_
,
err
:=
addr
.
ValueForProtocol
(
circuit
.
P_CIRCUIT
)
if
err
!
=
nil
{
if
err
=
=
nil
{
haveRelay
=
true
break
}
...
...
@@ -174,7 +174,7 @@ func TestAutoRelay(t *testing.T) {
var
raddrs
[]
ma
.
Multiaddr
for
_
,
addr
:=
range
h3
.
Addrs
()
{
_
,
err
:=
addr
.
ValueForProtocol
(
circuit
.
P_CIRCUIT
)
if
err
!
=
nil
{
if
err
=
=
nil
{
raddrs
=
append
(
raddrs
,
addr
)
}
}
...
...
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