good morning!!!!

Skip to content
Snippets Groups Projects
Commit 38827dd9 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub
Browse files

Merge pull request #3445 from karalabe/govet-ip-signal

p2p/nat: fix a bytes based net.IP comparison
parents 033763ea 21fd9f03
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@
package nat
import (
"bytes"
"net"
"testing"
"time"
......@@ -56,7 +55,7 @@ func TestAutoDiscRace(t *testing.T) {
t.Errorf("result %d: unexpected error: %v", i, rval.err)
}
wantIP := net.IP{33, 44, 55, 66}
if !bytes.Equal(rval.ip, wantIP) {
if !rval.ip.Equal(wantIP) {
t.Errorf("result %d: got IP %v, want %v", i, rval.ip, wantIP)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment