summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-06-30 04:41:27 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-06-30 05:29:29 +0200
commitd7527008f87b22eef3c6af93dd9018ad9a494304 (patch)
treee7880a545ebd766b9dd33cb5da067da5bb3b981a
parent25bd342c1ee1e4e033d4b0d191adbb60f3b0031e (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.ttcn18
1 files changed, 9 insertions, 9 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 5b0b6ab..5fb7d0e 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -4499,25 +4499,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);
@@ -4545,17 +4545,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 */
@@ -4623,7 +4623,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);
@@ -4653,7 +4653,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 */