diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-07 22:19:57 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-02 09:53:38 +0900 |
commit | 093945ee30f47555f28b389f14b62976586b8bac (patch) | |
tree | 2009e2c01f2b1cb0e6d2b19cc814868f1df18903 /table/destination_test.go | |
parent | e84989706157ffd7b895f42e4057e3f8ca382b3d (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.go | 4 |
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) |