diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-11 23:20:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-11 23:20:03 +0900 |
commit | 60fe1ebaa03a86df7326e91c67458dfb637e2f41 (patch) | |
tree | d86568296a3ff6ed0426c22c4ad887f789465b5b /packet/bgp_test.go | |
parent | f2dd895b33969099cb548b3ee9cb30dafcd01433 (diff) |
packet: validate some attributes
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r-- | packet/bgp_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packet/bgp_test.go b/packet/bgp_test.go index 2cc36a85..5c2525cc 100644 --- a/packet/bgp_test.go +++ b/packet/bgp_test.go @@ -121,7 +121,10 @@ func Test_Message(t *testing.T) { for _, m := range l { buf1, _ := m.Serialize() t.Log("LEN =", len(buf1)) - msg, _ := ParseBGPMessage(buf1) + msg, err := ParseBGPMessage(buf1) + if err != nil { + t.Error(err) + } buf2, _ := msg.Serialize() if bytes.Compare(buf1, buf2) == 0 { t.Log("OK") |