Commit dcb8fd28 authored by vyzo's avatar vyzo
Browse files

fix inverted address selection logic in test

parent ee69383c
......@@ -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)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment