aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-10 18:46:12 +0200
committerHarald Welte <laforge@osmocom.org>2020-10-11 18:19:44 +0200
commitc46ea3cefcfc996615ae6988e9f72b60cf60e585 (patch)
tree83905753436a9e20445c651e54939328f5a253c3
parentf3d3a72caf02e0416e4b4fc18c613e35b616ac69 (diff)
bsc: Fix random failures in BSC_Tests.TC_early_conn_fail
We cannot use a random 8bit value as RACH request, as some of that space actually maps to emergency call RACH, which is rejected unless we enable it in the config. Change-Id: Ie073fe721022c392278e8632ab52122b4b89cbe1
-rw-r--r--bsc/BSC_Tests.ttcn2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index b141a0a7..9109933a 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -1626,7 +1626,7 @@ testcase TC_early_conn_fail() runs on test_CT {
f_init(1);
/* BTS->BSC: Send CHAN RQD and wait for allocation; acknowledge it */
- dt.rsl_chan_nr := f_chreq_act_ack(f_rnd_octstring(1), 23);
+ dt.rsl_chan_nr := f_chreq_act_ack(f_rnd_ra_cs(), 23);
/* BTS->BSC: simulate CONN FAIL IND */
f_ipa_tx(0, ts_RSL_CONN_FAIL_IND(dt.rsl_chan_nr, RSL_ERR_RADIO_LINK_FAIL));