# HG changeset patch # User Henry Precheur # Date 1490156993 25200 # Tue Mar 21 21:29:53 2017 -0700 # Node ID 88af2b28bf19f655f24646b72f8529c578339199 # Parent c919409ff28b37048d73df933e781c1ca843e095 Fix test diff --git a/packet_test.go b/packet_test.go --- a/packet_test.go +++ b/packet_test.go @@ -44,4 +44,12 @@ if int(n) != len(expected) { t.Fatalf("%d != %d", n, len(expected)) } + if ( + other.header.ConnectionId != 1234 || + other.header.Sequence != 1234 || + other.header.Ack != 1234 || + other.header.Control != 1234 || + !bytes.Equal(other.Payload, []byte("1234"))) { + t.Fatalf("bad packet %v", other) + } }