From cc845feb12571d9b935fffc571a1f85fe49eeb6c Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 14 Jul 2021 00:48:30 +0200 Subject: test_penalty_timer.ho_vty: show lchan recovery Use recently added fake-time 'wait' command to show how the lchan in LCHAN_ST_WAIT_AFTER_ERROR recovers as soon as timer X3111 has passed. This prepares for also waiting for the penalty timeout to pass. Related: SYS#5198 Change-Id: I8f7668b6d08a0dac9e90d2358955f9d5099d39fa --- tests/handover/test_penalty_timer.ho_vty | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/handover/test_penalty_timer.ho_vty b/tests/handover/test_penalty_timer.ho_vty index 22b9a9529..9511b5e32 100644 --- a/tests/handover/test_penalty_timer.ho_vty +++ b/tests/handover/test_penalty_timer.ho_vty @@ -3,6 +3,12 @@ # Even though the cell is still better, handover will not be performed # due to penalty timer after handover failure +network + # set the timeout for LCHAN_ST_WAIT_AFTER_ERROR + timer X3111 5 + # set penalty timeout + handover2 penalty-time failed-ho 23 + create-n-bts 2 set-ts-use trx 0 0 states * TCH/F - - - - - - meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30 @@ -11,7 +17,15 @@ expect-ho-cmd lchan 0 0 1 0 ho-failed # first BTS still services the call: expect-ts-use trx 0 0 states * TCH/F - - - - - - + # lchan 1 0 1 0 is in LCHAN_ST_WAIT_AFTER_ERROR because the handover failed: expect-ts-use trx 1 0 states * ! - - - - - - +wait 4 +expect-ts-use trx 1 0 states * ! - - - - - - +wait 1 +expect-ts-use trx 1 0 states * - - - - - - - +# back to UNUSED + +# No handover because the penalty timer is still running meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30 expect-no-chan -- cgit v1.2.3