summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-11 23:20:03 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-11 23:20:03 +0900
commit60fe1ebaa03a86df7326e91c67458dfb637e2f41 (patch)
treed86568296a3ff6ed0426c22c4ad887f789465b5b /packet/bgp_test.go
parentf2dd895b33969099cb548b3ee9cb30dafcd01433 (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.go5
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")