From a1a86cd2127cd30c7781563ac8e00257f1214779 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 21 Oct 2015 09:50:39 +0900 Subject: table: make AdjRib API take slice of RouteFamily Make the code simpler Signed-off-by: FUJITA Tomonori --- table/table_manager_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table/table_manager_test.go') 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) } -- cgit v1.2.3