diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-09 07:43:43 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-09 07:43:43 +0000 |
commit | 3ced192e5c5bda81290e4a13d17bedd66b36b439 (patch) | |
tree | aa0ac5f307d72658d0297ff344186fce77455ba0 /server/fsm_test.go | |
parent | db59fed44d8a1df5b5feffbfb1fc7f3c9b61a8c1 (diff) |
server: fix to send more appropriate notification code/subcode
admin-down : 6/2
peer-as/neighbor-address : 6/3
other : 6/6
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm_test.go')
-rw-r--r-- | server/fsm_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/fsm_test.go b/server/fsm_test.go index 42c61919..f175d4b5 100644 --- a/server/fsm_test.go +++ b/server/fsm_test.go @@ -164,6 +164,7 @@ func TestFSMHandlerOpensent_HoldTimerExpired(t *testing.T) { // push mock connection p.fsm.conn = m + p.fsm.h = h // set keepalive ticker p.fsm.pConf.Timers.State.NegotiatedHoldTime = 3 @@ -189,6 +190,7 @@ func TestFSMHandlerOpenconfirm_HoldTimerExpired(t *testing.T) { // push mock connection p.fsm.conn = m + p.fsm.h = h // set up keepalive ticker p.fsm.pConf.Timers.Config.KeepaliveInterval = 1 @@ -213,6 +215,7 @@ func TestFSMHandlerEstablish_HoldTimerExpired(t *testing.T) { // push mock connection p.fsm.conn = m + p.fsm.h = h // set keepalive ticker p.fsm.pConf.Timers.State.NegotiatedHoldTime = 3 @@ -250,6 +253,7 @@ func TestFSMHandlerOpenconfirm_HoldtimeZero(t *testing.T) { // push mock connection p.fsm.conn = m + p.fsm.h = h // set up keepalive ticker p.fsm.pConf.Timers.Config.KeepaliveInterval = 1 @@ -272,6 +276,7 @@ func TestFSMHandlerEstablished_HoldtimeZero(t *testing.T) { // push mock connection p.fsm.conn = m + p.fsm.h = h // set holdtime p.fsm.pConf.Timers.State.NegotiatedHoldTime = 0 |