summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table/adj_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/table/adj_test.go')
-rw-r--r--internal/pkg/table/adj_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/pkg/table/adj_test.go b/internal/pkg/table/adj_test.go
index 99aba0ff..bb1f07b9 100644
--- a/internal/pkg/table/adj_test.go
+++ b/internal/pkg/table/adj_test.go
@@ -75,11 +75,11 @@ func TestAddPathAdjOut(t *testing.T) {
p2 := NewPath(pi, nlri2, false, attrs, time.Now(), false)
nlri3 := bgp.NewIPAddrPrefix(24, "20.20.20.0")
nlri3.SetPathIdentifier(2)
- nlri3.SetPathLocalIdentifier(2)
+ nlri3.SetPathLocalIdentifier(3)
p3 := NewPath(pi, nlri3, false, attrs, time.Now(), false)
nlri4 := bgp.NewIPAddrPrefix(24, "20.20.20.0")
nlri4.SetPathIdentifier(3)
- nlri4.SetPathLocalIdentifier(2)
+ nlri4.SetPathLocalIdentifier(4)
p4 := NewPath(pi, nlri4, false, attrs, time.Now(), false)
family := p1.GetRouteFamily()
families := []bgp.RouteFamily{family}
@@ -87,7 +87,7 @@ func TestAddPathAdjOut(t *testing.T) {
adj := NewAdjRib(families)
adj.UpdateAdjRibOut([]*Path{p1, p2, p3, p4})
assert.Equal(t, len(adj.table[family].destinations), 1)
- assert.Equal(t, adj.Count([]bgp.RouteFamily{family}), 2)
+ assert.Equal(t, adj.Count([]bgp.RouteFamily{family}), 4)
}
func TestStale(t *testing.T) {