summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-13 10:50:26 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-13 10:50:26 +0900
commit59f18c15ca7f809376d73a412b0d6351298b66fd (patch)
treef56aba1d039e3205984834f34ce5ebf4156d7f8f /table/table_manager_test.go
parente2fdf3c3684434a92d46ecbfe9a5ba6f3ef0e587 (diff)
use the same timestamp for bmp and mrt updates
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.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/table/table_manager_test.go b/table/table_manager_test.go
index a836347a..8a4f67f9 100644
--- a/table/table_manager_test.go
+++ b/table/table_manager_test.go
@@ -23,6 +23,7 @@ import (
"net"
"os"
"testing"
+ "time"
)
func getLogger(lv log.Level) *log.Logger {
@@ -2143,13 +2144,13 @@ func TestProcessBGPUpdate_Timestamp(t *testing.T) {
adjRib := NewAdjRib([]bgp.RouteFamily{bgp.RF_IPv4_UC, bgp.RF_IPv6_UC})
m1 := bgp.NewBGPUpdateMessage(nil, pathAttributes, nlri)
peer := peerR1()
- pList1 := ProcessMessage(m1, peer)
+ pList1 := ProcessMessage(m1, peer, time.Now())
path1 := pList1[0]
t1 := path1.timestamp
adjRib.UpdateIn(pList1)
m2 := bgp.NewBGPUpdateMessage(nil, pathAttributes, nlri)
- pList2 := ProcessMessage(m2, peer)
+ pList2 := ProcessMessage(m2, peer, time.Now())
//path2 := pList2[0].(*IPv4Path)
//t2 = path2.timestamp
adjRib.UpdateIn(pList2)
@@ -2167,7 +2168,7 @@ func TestProcessBGPUpdate_Timestamp(t *testing.T) {
}
m3 := bgp.NewBGPUpdateMessage(nil, pathAttributes2, nlri)
- pList3 := ProcessMessage(m3, peer)
+ pList3 := ProcessMessage(m3, peer, time.Now())
t3 := pList3[0].GetTimestamp()
adjRib.UpdateIn(pList3)