diff options
Diffstat (limited to 'pkg/server/fsm_test.go')
-rw-r--r-- | pkg/server/fsm_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/server/fsm_test.go b/pkg/server/fsm_test.go index e7daa9b6..1e245a7e 100644 --- a/pkg/server/fsm_test.go +++ b/pkg/server/fsm_test.go @@ -308,15 +308,15 @@ func TestCheckOwnASLoop(t *testing.T) { assert.False(hasOwnASLoop(65200, 0, aspath)) } -func makePeerAndHandler() (*peer, *FSMHandler) { +func makePeerAndHandler() (*peer, *fsmHandler) { p := &peer{ - fsm: NewFSM(&config.Global{}, &config.Neighbor{}, table.NewRoutingPolicy()), + fsm: newFSM(&config.Global{}, &config.Neighbor{}, table.NewRoutingPolicy()), outgoing: channels.NewInfiniteChannel(), } - h := &FSMHandler{ + h := &fsmHandler{ fsm: p.fsm, - stateReasonCh: make(chan FsmStateReason, 2), + stateReasonCh: make(chan fsmStateReason, 2), incoming: channels.NewInfiniteChannel(), outgoing: p.outgoing, } |