summaryrefslogtreecommitdiffhomepage
path: root/table/destination_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-07 22:19:57 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-02 09:53:38 +0900
commit093945ee30f47555f28b389f14b62976586b8bac (patch)
tree2009e2c01f2b1cb0e6d2b19cc814868f1df18903 /table/destination_test.go
parente84989706157ffd7b895f42e4057e3f8ca382b3d (diff)
table: sort all known paths instead of just selecting best
this is a preparation for add-path recv/send feature Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/destination_test.go')
-rw-r--r--table/destination_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/destination_test.go b/table/destination_test.go
index 8624bc8d..dce14250 100644
--- a/table/destination_test.go
+++ b/table/destination_test.go
@@ -65,14 +65,14 @@ func TestDestinationGetNlri(t *testing.T) {
}
func TestDestinationSetBestPathReason(t *testing.T) {
dd := &Destination{}
- reason := "reason1"
+ reason := BestPathReason("reason1")
dd.setBestPathReason(reason)
r_reason := dd.getBestPathReason()
assert.Equal(t, r_reason, reason)
}
func TestDestinationGetBestPathReason(t *testing.T) {
dd := &Destination{}
- reason := "reason2"
+ reason := BestPathReason("reason2")
dd.setBestPathReason(reason)
r_reason := dd.getBestPathReason()
assert.Equal(t, r_reason, reason)