summaryrefslogtreecommitdiffhomepage
path: root/server/fsm_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-01 02:49:05 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-04 16:46:28 +0900
commitce1d27ba8c49856c2e67c65f076caf48dbb6765e (patch)
tree3e97ec845190758c73c0da080300a36a4cb17feb /server/fsm_test.go
parentaa3b0436d20a1d9ed16fee34b323ea6e73ba0c85 (diff)
server: handle open message only in fsm
we don't need to spread this handling to peer.go and server.go Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm_test.go')
-rw-r--r--server/fsm_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/fsm_test.go b/server/fsm_test.go
index b5618edd..4eb907f3 100644
--- a/server/fsm_test.go
+++ b/server/fsm_test.go
@@ -289,9 +289,8 @@ func makePeerAndHandler() (*Peer, *FSMHandler) {
pConf := config.Neighbor{}
p := &Peer{
- gConf: gConf,
- conf: pConf,
- capMap: make(map[bgp.BGPCapabilityCode][]bgp.ParameterCapabilityInterface),
+ gConf: gConf,
+ conf: pConf,
}
p.fsm = NewFSM(&gConf, &pConf, table.NewRoutingPolicy())