diff options
author | Jeff Bean <bean@uber.com> | 2018-06-22 19:12:33 -0700 |
---|---|---|
committer | Jeff Bean <bean@uber.com> | 2018-06-22 19:12:33 -0700 |
commit | 154650594c5b40b2905eb73b90f52de72f6ced16 (patch) | |
tree | 2ba6ffe099ff216a92df7fb3806eb9aeaa988208 /table/message_test.go | |
parent | 954562d65a90af4e8d2e9bf29e4c2bccc4420b38 (diff) |
Fixing all megacheck errors.
Diffstat (limited to 'table/message_test.go')
-rw-r--r-- | table/message_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/table/message_test.go b/table/message_test.go index f7cb6f5e..11c8dd19 100644 --- a/table/message_test.go +++ b/table/message_test.go @@ -578,9 +578,7 @@ func TestMergeV4NLRIs(t *testing.T) { for _, msg := range msgs { u := msg.Body.(*bgp.BGPUpdate) assert.Equal(t, len(u.PathAttributes), 3) - for _, n := range u.NLRI { - l = append(l, n) - } + l = append(l, u.NLRI...) } assert.Equal(t, len(l), nr) @@ -651,9 +649,7 @@ func TestMergeV4Withdraw(t *testing.T) { for _, msg := range msgs { u := msg.Body.(*bgp.BGPUpdate) assert.Equal(t, len(u.PathAttributes), 0) - for _, n := range u.WithdrawnRoutes { - l = append(l, n) - } + l = append(l, u.WithdrawnRoutes...) } assert.Equal(t, len(l), nr) for i, addr := range addrs { |