Skip to content
Snippets Groups Projects
Commit b0bc4600 authored by Oliver Herms's avatar Oliver Herms
Browse files

Fxing test

parent 86169bf3
No related branches found
No related tags found
No related merge requests found
...@@ -1561,13 +1561,15 @@ func TestDecodeOptParams(t *testing.T) { ...@@ -1561,13 +1561,15 @@ func TestDecodeOptParams(t *testing.T) {
{ {
Type: 2, Type: 2,
Length: 6, Length: 6,
Value: Capability{ Value: Capabilities{
Code: 69, {
Length: 4, Code: 69,
Value: AddPathCapability{ Length: 4,
AFI: 1, Value: AddPathCapability{
SAFI: 1, AFI: 1,
SendReceive: 3, SAFI: 1,
SendReceive: 3,
},
}, },
}, },
}, },
......
...@@ -30,6 +30,14 @@ func (m *RTMockClient) UpdateNewClient(client routingtable.RouteTableClient) err ...@@ -30,6 +30,14 @@ func (m *RTMockClient) UpdateNewClient(client routingtable.RouteTableClient) err
return fmt.Errorf("Not implemented") 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` // RemovePath removes the path for prefix `pfx`
func (m *RTMockClient) RemovePath(pfx net.Prefix, p *route.Path) bool { func (m *RTMockClient) RemovePath(pfx net.Prefix, p *route.Path) bool {
m.removePathParams.pfx = pfx m.removePathParams.pfx = pfx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment