From c46ea3cefcfc996615ae6988e9f72b60cf60e585 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 10 Oct 2020 18:46:12 +0200 Subject: [PATCH] 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 --- bsc/BSC_Tests.ttcn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index b141a0a7d..9109933a9 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));