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
This commit is contained in:
Neels Hofmeyr 2020-06-30 04:41:27 +02:00
parent f843840707
commit 3d149aef4c
1 changed files with 9 additions and 9 deletions

View File

@ -5986,25 +5986,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);
@ -6032,17 +6032,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 */
@ -6110,7 +6110,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);
@ -6140,7 +6140,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 */