diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-06-09 21:20:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-06-09 23:20:15 +0900 |
commit | ca832f94bbb1c8e0cecfd7118366a48159512e23 (patch) | |
tree | 7197e7bfb41d612be3549ddfa8bd2f3f2c71f2db /table/destination_test.go | |
parent | a97129f1400f2be76942124f535fb9831063aa5a (diff) |
server: kill peerMsg
Peers send and receive messages via channels, which could lead to a
deadlock. With this patch, multiple goroutines are used for network
I/Os per peer but one goroutine handle all ribs (including the global
rib). So there is no messages via channels between peers.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@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 f6005588..7c30764a 100644 --- a/table/destination_test.go +++ b/table/destination_test.go @@ -82,7 +82,7 @@ func TestDestinationSetBestPath(t *testing.T) { pathD := DestCreatePath(peerD) ipv4d := NewIPv4Destination(pathD[0].GetNlri()) ipv4d.setBestPath(pathD[0]) - r_pathD := ipv4d.getBestPath() + r_pathD := ipv4d.GetBestPath() assert.Equal(t, r_pathD, pathD[0]) } func TestDestinationGetBestPath(t *testing.T) { @@ -90,7 +90,7 @@ func TestDestinationGetBestPath(t *testing.T) { pathD := DestCreatePath(peerD) ipv4d := NewIPv4Destination(pathD[0].GetNlri()) ipv4d.setBestPath(pathD[0]) - r_pathD := ipv4d.getBestPath() + r_pathD := ipv4d.GetBestPath() assert.Equal(t, r_pathD, pathD[0]) } func TestDestinationCalculate(t *testing.T) { |