diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-27 11:02:42 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-27 15:20:51 +0000 |
commit | 87a951546c43cb70ad3a03ec42de7cead8d25d72 (patch) | |
tree | 62e79e2dea8ae5a6a8f13c7f88f9cd3d0eaf3a29 /table/table_manager_test.go | |
parent | 91cb8ea23f454592be9fb4565f0f477afdbcb0ec (diff) |
table: make table.ProcessMessage a function
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager_test.go')
-rw-r--r-- | table/table_manager_test.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/table/table_manager_test.go b/table/table_manager_test.go index 91887cfb..d65db21f 100644 --- a/table/table_manager_test.go +++ b/table/table_manager_test.go @@ -2224,15 +2224,13 @@ func TestProcessBGPUpdate_Timestamp(t *testing.T) { adjRib := NewAdjRib([]bgp.RouteFamily{bgp.RF_IPv4_UC, bgp.RF_IPv6_UC}) m1 := bgp.NewBGPUpdateMessage(withdrawnRoutes, pathAttributes, nlri) peer := peerR1() - msg1 := NewProcessMessage(m1, peer) - pList1 := msg1.ToPathList() + pList1 := ProcessMessage(m1, peer) path1 := pList1[0].(*IPv4Path) t1 := path1.timestamp adjRib.UpdateIn(pList1) m2 := bgp.NewBGPUpdateMessage(withdrawnRoutes, pathAttributes, nlri) - msg2 := NewProcessMessage(m2, peer) - pList2 := msg2.ToPathList() + pList2 := ProcessMessage(m2, peer) //path2 := pList2[0].(*IPv4Path) //t2 = path2.timestamp adjRib.UpdateIn(pList2) @@ -2250,8 +2248,7 @@ func TestProcessBGPUpdate_Timestamp(t *testing.T) { } m3 := bgp.NewBGPUpdateMessage(withdrawnRoutes, pathAttributes2, nlri) - msg3 := NewProcessMessage(m3, peer) - pList3 := msg3.ToPathList() + pList3 := ProcessMessage(m3, peer) t3 := pList3[0].getTimestamp() adjRib.UpdateIn(pList3) |