From 76cc87e9b4796837a6930991b012f42d6fccbd7f Mon Sep 17 00:00:00 2001
From: Maximilian Wilhelm <max@sdn.clinic>
Date: Mon, 2 Jul 2018 23:27:04 +0200
Subject: [PATCH] Drive-by-fix: Fix Type Code in TestSerializeCommunities().

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
---
 protocols/bgp/packet/path_attributes_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protocols/bgp/packet/path_attributes_test.go b/protocols/bgp/packet/path_attributes_test.go
index 3bd22598..486f19d0 100644
--- a/protocols/bgp/packet/path_attributes_test.go
+++ b/protocols/bgp/packet/path_attributes_test.go
@@ -1442,7 +1442,7 @@ func TestSerializeCommunities(t *testing.T) {
 		{
 			name: "2 communities",
 			input: &PathAttribute{
-				TypeCode: LargeCommunitiesAttr,
+				TypeCode: CommunitiesAttr,
 				Value: []uint32{
 					131080, 16778241,
 				},
-- 
GitLab