go test: don't use 1 as icmp ids
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
554d77fbd7
commit
0e583e8770
|
@ -103,8 +103,8 @@ func main() {
|
||||||
pingMessage, _ := (&icmp.Message{
|
pingMessage, _ := (&icmp.Message{
|
||||||
Type: ipv4.ICMPTypeEcho,
|
Type: ipv4.ICMPTypeEcho,
|
||||||
Body: &icmp.Echo{
|
Body: &icmp.Echo{
|
||||||
ID: 1,
|
ID: 921,
|
||||||
Seq: 1,
|
Seq: 438,
|
||||||
Data: []byte("WireGuard"),
|
Data: []byte("WireGuard"),
|
||||||
},
|
},
|
||||||
}).Marshal(nil)
|
}).Marshal(nil)
|
||||||
|
@ -156,7 +156,7 @@ func main() {
|
||||||
log.Fatalf("unexpected reply body type %T", replyMessage.Body)
|
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)
|
log.Fatalf("incorrect echo response: %#v", echo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue