diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2020-06-30 04:41:27 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2020-08-19 14:19:30 +0000 |
commit | d1ce722d0b2b590c4755eb5d79a8042b4c90ae86 (patch) | |
tree | 6a44fcf50ec5499212a071b752e7505fac767dd5 | |
parent | 335e53d639a1ad07464640abf99705d15585aff5 (diff) |
bsc: TC_dyn_pdch_* shorten some delays
So far we're sleeping a hole second before verifying the PDCH status of a
dynamic timeslot. That is just to ensure that osmo-bsc has read the message
from its queue and changed its status.
Change to a sleep of 0.1s, cutting a couple of seconds off the test execution.
Change-Id: Ic6cd373e18aea6eff14f2be5432705b9838e6054
-rw-r--r-- | bsc/BSC_Tests.ttcn | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 003df49f..3e5b4fd6 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -5286,25 +5286,25 @@ testcase TC_dyn_pdch_ipa_act_deact() runs on test_CT { /* The BSC will activate the dynamic PDCH by default, so confirm that */ rsl_unused := f_exp_ipa_rx(0, tr_RSL_IPA_PDCH_ACT(chan_nr)); f_ipa_tx(0, ts_RSL_IPA_PDCH_ACT_ACK(chan_nr, ts_RSL_IE_FrameNumber(2342))); - f_sleep(1.0); + f_sleep(0.1); log("TCH/F_PDCH pchan, PDCH ACT was ACKed, so now in PDCH mode:"); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, PDCH_MODE); /* De-activate it via VTY */ f_dyn_ipa_pdch_deact(0, 0, chan_nr.tn); - f_sleep(1.0); + f_sleep(0.1); log("TCH/F_PDCH pchan, PDCH DEACT via VTY, so now back in TCH/F mode:"); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, TCHF_MODE); /* re-activate it via VTY */ f_dyn_ipa_pdch_act(0, 0, chan_nr.tn); - f_sleep(1.0); + f_sleep(0.1); log("TCH/F_PDCH pchan, PDCH ACT via VTY, so now in PDCH mode:"); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, PDCH_MODE); /* and finally de-activate it again */ f_dyn_ipa_pdch_deact(0, 0, chan_nr.tn); - f_sleep(1.0); + f_sleep(0.1); log("TCH/F_PDCH pchan, PDCH DEACT via VTY, so now back in TCH/F mode:"); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, TCHF_MODE); @@ -5332,17 +5332,17 @@ testcase TC_dyn_pdch_ipa_act_nack() runs on test_CT { /* The BSC will activate the dynamic PDCH by default, so confirm that */ rsl_unused := f_exp_ipa_rx(0, tr_RSL_IPA_PDCH_ACT(chan_nr)); f_ipa_tx(0, ts_RSL_IPA_PDCH_ACT_ACK(chan_nr, ts_RSL_IE_FrameNumber(2342))); - f_sleep(1.0); + f_sleep(0.1); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, PDCH_MODE); /* De-activate it via VTY */ f_dyn_ipa_pdch_deact(0, 0, chan_nr.tn); - f_sleep(1.0); + f_sleep(0.1); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, TCHF_MODE); /* re-activate it via VTY, but fail that; check BSC still assumes TCH/F mode */ f_dyn_ipa_pdch_act(0, 0, chan_nr.tn, RSL_ERR_EQUIPMENT_FAIL); - f_sleep(1.0); + f_sleep(0.1); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, TCHF_MODE); /* clean up config */ @@ -5410,7 +5410,7 @@ testcase TC_dyn_pdch_osmo_act_deact() runs on test_CT { rsl_unused := f_exp_ipa_rx(0, tr_RSL_CHAN_ACT_PDCH(chan_nr, ?)); f_ipa_tx(0, ts_RSL_CHAN_ACT_ACK(chan_nr, 2342)); - f_sleep(1.0); + f_sleep(0.1); log("TCH/F_TCH/H_PDCH requested to PDCH ACT on startup, which was ACKed, so now in PDCH:"); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, PDCH_MODE); @@ -5440,7 +5440,7 @@ testcase TC_dyn_pdch_osmo_act_nack() runs on test_CT { /* NACK this activation and expect the "show timeslot" mode still to be NONE */ f_ipa_tx(0, ts_RSL_CHAN_ACT_NACK(chan_nr, RSL_ERR_EQUIPMENT_FAIL)); - f_sleep(1.0); + f_sleep(0.1); f_ts_dyn_mode_assert(0, 0, chan_nr.tn, NONE_MODE); /* clean up config */ |