From b0bc46006e9e98bcfa724cda304548f705213c7d Mon Sep 17 00:00:00 2001
From: Oliver Herms <oliver.herms@exaring.de>
Date: Wed, 16 May 2018 15:53:01 +0200
Subject: [PATCH] Fxing test

---
 protocols/bgp/packet/decoder_test.go     | 16 +++++++++-------
 routingtable/adjRIBIn/adj_rib_in_test.go |  8 ++++++++
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/protocols/bgp/packet/decoder_test.go b/protocols/bgp/packet/decoder_test.go
index 53681371..01d4e015 100644
--- a/protocols/bgp/packet/decoder_test.go
+++ b/protocols/bgp/packet/decoder_test.go
@@ -1561,13 +1561,15 @@ func TestDecodeOptParams(t *testing.T) {
 				{
 					Type:   2,
 					Length: 6,
-					Value: Capability{
-						Code:   69,
-						Length: 4,
-						Value: AddPathCapability{
-							AFI:         1,
-							SAFI:        1,
-							SendReceive: 3,
+					Value: Capabilities{
+						{
+							Code:   69,
+							Length: 4,
+							Value: AddPathCapability{
+								AFI:         1,
+								SAFI:        1,
+								SendReceive: 3,
+							},
 						},
 					},
 				},
diff --git a/routingtable/adjRIBIn/adj_rib_in_test.go b/routingtable/adjRIBIn/adj_rib_in_test.go
index a458dc78..5659ab80 100644
--- a/routingtable/adjRIBIn/adj_rib_in_test.go
+++ b/routingtable/adjRIBIn/adj_rib_in_test.go
@@ -30,6 +30,14 @@ func (m *RTMockClient) UpdateNewClient(client routingtable.RouteTableClient) err
 	return fmt.Errorf("Not implemented")
 }
 
+func (m *RTMockClient) Register(routingtable.RouteTableClient) {
+	return
+}
+
+func (m *RTMockClient) Unregister(routingtable.RouteTableClient) {
+	return
+}
+
 // RemovePath removes the path for prefix `pfx`
 func (m *RTMockClient) RemovePath(pfx net.Prefix, p *route.Path) bool {
 	m.removePathParams.pfx = pfx
-- 
GitLab