diff --git a/protocols/bgp/packet/decoder_test.go b/protocols/bgp/packet/decoder_test.go index 53681371a5d7ca2bdb2a703efc25bf85ea8b0d61..01d4e01596040cdab68d7cd5abdfb30b846fe3fa 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 a458dc780c9320e2c5d57676ec272489b1dcddd5..5659ab805f73b3bf888a08fa8ff6a7dbe8185bdf 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