diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-02-06 13:37:20 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-02-06 14:40:14 +0900 |
commit | 3c5ddc684ec6633698acda8e89803b456132aa62 (patch) | |
tree | ca558c73ee6c2019d5e33983467b7dedc346b7b1 /table/table_manager_test.go | |
parent | 672546f63d283f5115ac6799da3110d5f4387f84 (diff) |
table: replace time.Time struct with int64 in originInfo struct
We don't need nanosecond precision. shrinks from 96 to 80 bytes.
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.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/table/table_manager_test.go b/table/table_manager_test.go index ec979bf6..cde35a4f 100644 --- a/table/table_manager_test.go +++ b/table/table_manager_test.go @@ -17,13 +17,14 @@ package table import ( _ "fmt" - "github.com/osrg/gobgp/packet/bgp" - log "github.com/sirupsen/logrus" - "github.com/stretchr/testify/assert" "net" "os" "testing" "time" + + "github.com/osrg/gobgp/packet/bgp" + log "github.com/sirupsen/logrus" + "github.com/stretchr/testify/assert" ) // process BGPUpdate message @@ -2129,7 +2130,7 @@ func TestProcessBGPUpdate_Timestamp(t *testing.T) { peer := peerR1() pList1 := ProcessMessage(m1, peer, time.Now()) path1 := pList1[0] - t1 := path1.OriginInfo().timestamp + t1 := path1.GetTimestamp() adjRib.Update(pList1) m2 := bgp.NewBGPUpdateMessage(nil, pathAttributes, nlri) |