summaryrefslogtreecommitdiffhomepage
path: root/server/server_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-18 13:44:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-18 14:00:51 +0900
commite11b09d7eae851d777a06ee18fde7865a361f5bb (patch)
treef33fd973aadabd3cb6ead949f0c8e3fadb481c20 /server/server_test.go
parent93d1dca70aa0ae3b34050d24ad7462b8757213bf (diff)
server: disable advertised number calculation with multiple neighbors
AdjRibOut isn't in memory so needs to be calculated on the fly. Doing such for multiple neighbors consumes too much CPU (especially there are lots of routes). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server_test.go')
-rw-r--r--server/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server_test.go b/server/server_test.go
index b9d8263f..46ef4be3 100644
--- a/server/server_test.go
+++ b/server/server_test.go
@@ -107,7 +107,7 @@ func TestMonitor(test *testing.T) {
for {
time.Sleep(time.Second)
- if t.GetNeighbor()[0].State.SessionState == config.SESSION_STATE_ESTABLISHED {
+ if t.GetNeighbor(false)[0].State.SessionState == config.SESSION_STATE_ESTABLISHED {
break
}
}