summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/fsm_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-10-29 18:27:37 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-10-29 18:27:37 +0900
commitc8694bc8a7dccd663689f8d134b89fe3a1f37d70 (patch)
tree2539bed4de902626cdacad748caddbd4294d5919 /pkg/server/fsm_test.go
parent0b4d946298c6aca479dc79b578adb9ae0da1a850 (diff)
server: unexport Peer adn PeerGroup
No need to export them. Also fixed golint errors. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server/fsm_test.go')
-rw-r--r--pkg/server/fsm_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/fsm_test.go b/pkg/server/fsm_test.go
index dad6563a..e7daa9b6 100644
--- a/pkg/server/fsm_test.go
+++ b/pkg/server/fsm_test.go
@@ -308,8 +308,8 @@ func TestCheckOwnASLoop(t *testing.T) {
assert.False(hasOwnASLoop(65200, 0, aspath))
}
-func makePeerAndHandler() (*Peer, *FSMHandler) {
- p := &Peer{
+func makePeerAndHandler() (*peer, *FSMHandler) {
+ p := &peer{
fsm: NewFSM(&config.Global{}, &config.Neighbor{}, table.NewRoutingPolicy()),
outgoing: channels.NewInfiniteChannel(),
}