From: Jason A. Donenfeld Date: Thu, 7 Jul 2016 11:44:01 +0000 (+0200) Subject: go test: don't use 1 as icmp ids X-Git-Tag: v1.0.20191226~344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e583e8770e3a0bf48de790544ed65c7931d0a58;p=thirdparty%2Fwireguard-tools.git go test: don't use 1 as icmp ids Signed-off-by: Jason A. Donenfeld --- diff --git a/contrib/external-tests/go/main.go b/contrib/external-tests/go/main.go index ba0e3ac..ad9b4d1 100644 --- a/contrib/external-tests/go/main.go +++ b/contrib/external-tests/go/main.go @@ -103,8 +103,8 @@ func main() { pingMessage, _ := (&icmp.Message{ Type: ipv4.ICMPTypeEcho, Body: &icmp.Echo{ - ID: 1, - Seq: 1, + ID: 921, + Seq: 438, Data: []byte("WireGuard"), }, }).Marshal(nil) @@ -156,7 +156,7 @@ func main() { log.Fatalf("unexpected reply body type %T", replyMessage.Body) } - if echo.ID != 1 || echo.Seq != 1 || string(echo.Data) != "WireGuard" { + if echo.ID != 921 || echo.Seq != 438 || string(echo.Data) != "WireGuard" { log.Fatalf("incorrect echo response: %#v", echo) } }