summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-21 09:50:39 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-21 09:50:39 +0900
commita1a86cd2127cd30c7781563ac8e00257f1214779 (patch)
tree381c83dfb7d1d452a605a3dcfae562923678c902 /table/table_manager_test.go
parentec8c83d950c25a6b6d8b75655f9c48907dc9afd8 (diff)
table: make AdjRib API take slice of RouteFamily
Make the code simpler Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager_test.go')
-rw-r--r--table/table_manager_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/table_manager_test.go b/table/table_manager_test.go
index 122d60a1..a836347a 100644
--- a/table/table_manager_test.go
+++ b/table/table_manager_test.go
@@ -2154,7 +2154,7 @@ func TestProcessBGPUpdate_Timestamp(t *testing.T) {
//t2 = path2.timestamp
adjRib.UpdateIn(pList2)
- inList := adjRib.GetInPathList(bgp.RF_IPv4_UC)
+ inList := adjRib.GetInPathList([]bgp.RouteFamily{bgp.RF_IPv4_UC})
assert.Equal(t, len(inList), 1)
assert.Equal(t, inList[0].GetTimestamp(), t1)
@@ -2171,7 +2171,7 @@ func TestProcessBGPUpdate_Timestamp(t *testing.T) {
t3 := pList3[0].GetTimestamp()
adjRib.UpdateIn(pList3)
- inList = adjRib.GetInPathList(bgp.RF_IPv4_UC)
+ inList = adjRib.GetInPathList([]bgp.RouteFamily{bgp.RF_IPv4_UC})
assert.Equal(t, len(inList), 1)
assert.Equal(t, inList[0].GetTimestamp(), t3)
}