summaryrefslogtreecommitdiffhomepage
path: root/server/fsm_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/fsm_test.go')
-rw-r--r--server/fsm_test.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/server/fsm_test.go b/server/fsm_test.go
index afe66a0f..42c61919 100644
--- a/server/fsm_test.go
+++ b/server/fsm_test.go
@@ -284,18 +284,11 @@ func TestFSMHandlerEstablished_HoldtimeZero(t *testing.T) {
}
func makePeerAndHandler() (*Peer, *FSMHandler) {
- gConf := config.Global{}
- pConf := config.Neighbor{}
-
p := &Peer{
- gConf: gConf,
- conf: pConf,
+ fsm: NewFSM(&config.Global{}, &config.Neighbor{}, table.NewRoutingPolicy()),
+ outgoing: make(chan *FsmOutgoingMsg, 4096),
}
- p.fsm = NewFSM(&gConf, &pConf, table.NewRoutingPolicy())
-
- p.outgoing = make(chan *FsmOutgoingMsg, 4096)
-
h := &FSMHandler{
fsm: p.fsm,
errorCh: make(chan FsmStateReason, 2),