Skip to content
Snippets Groups Projects
Commit b67c2b5d authored by Maximilian Wilhelm's avatar Maximilian Wilhelm
Browse files

Fix tests for AdjRIBIn (due to contributing ASN change).

parent bca47323
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ func TestAddPath(t *testing.T) { ...@@ -115,7 +115,7 @@ func TestAddPath(t *testing.T) {
} }
for _, test := range tests { for _, test := range tests {
adjRIBIn := New(filter.NewAcceptAllFilter()) adjRIBIn := New(filter.NewAcceptAllFilter(), routingtable.NewContributingASNs())
mc := NewRTMockClient() mc := NewRTMockClient()
adjRIBIn.ClientManager.Register(mc) adjRIBIn.ClientManager.Register(mc)
...@@ -206,7 +206,7 @@ func TestRemovePath(t *testing.T) { ...@@ -206,7 +206,7 @@ func TestRemovePath(t *testing.T) {
} }
for _, test := range tests { for _, test := range tests {
adjRIBIn := New(filter.NewAcceptAllFilter()) adjRIBIn := New(filter.NewAcceptAllFilter(), routingtable.NewContributingASNs())
for _, route := range test.routes { for _, route := range test.routes {
adjRIBIn.AddPath(route.Prefix(), route.Paths()[0]) adjRIBIn.AddPath(route.Prefix(), route.Paths()[0])
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment