aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/external-tests/go/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-07 13:44:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-07 13:44:01 +0200
commitdf68121676a70b325993e3bfdd51dce4c6bc65eb (patch)
tree097c5e92e29f2557725c2c5f46c79f0d23f03bac /contrib/external-tests/go/main.go
parentgo test: dynamically calculate ip checksum (diff)
downloadwireguard-monolithic-historical-df68121676a70b325993e3bfdd51dce4c6bc65eb.tar.xz
wireguard-monolithic-historical-df68121676a70b325993e3bfdd51dce4c6bc65eb.zip
go test: don't use 1 as icmp ids
Diffstat (limited to 'contrib/external-tests/go/main.go')
-rw-r--r--contrib/external-tests/go/main.go6
1 files changed, 3 insertions, 3 deletions
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)
}
}