From 093945ee30f47555f28b389f14b62976586b8bac Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 7 Sep 2015 22:19:57 +0900 Subject: 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 --- table/destination_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table/destination_test.go') 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) -- cgit v1.2.3