bsc: TC_paging_imsi_load: retransmit 'no paging buffer space'
If 5 seconds expire, the BSC will automatically re-fill a credit
of 20 paging slots [to work with BTSs where the paging buffer space
indications somehow are missing]. Let's make sure we don't hit
that case, even if the operating system sleeps for more than 5s
in this test .
Change-Id: I1c65096a685b70dc5183592382ec03553ba3628f
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index c8961e9..355f3e2 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -1175,6 +1175,7 @@
testcase TC_paging_imsi_load() runs on test_CT {
var BSSMAP_FIELD_CellIdentificationList cid_list;
timer T := 4.0;
+ timer T_retrans := 1.0;
cid_list := valueof(ts_BSSMAP_CIL_noCell);
f_pageing_helper('001010123456789'H, cid_list, c_BtsId_all);
@@ -1186,11 +1187,18 @@
/* Wait for 4 seconds if any more PAGING CMD are received on RSL. Normally,
* there would be 8 retransmissions during 4 seconds */
T.start;
+ T_retrans.start;
alt {
[] IPA_RSL[0].receive(tr_ASP_RSL_UD(IPAC_PROTO_RSL_TRX0, tr_RSL_PAGING_CMD(?))) {
setverdict(fail, "Received PAGING after LOAD_IND(0)");
self.stop;
}
+ [] T_retrans.timeout {
+ /* re-trnsmit the zero-space LOAD IND to avoid BSC 'auto credit' */
+ f_ipa_tx(0, ts_RSL_PAGING_LOAD_IND(0));
+ T_retrans.start;
+ repeat;
+ }
[] T.timeout {
setverdict(pass);
}