bsc: Fix dangling subscriber talloc ctx in f_TC_paging_Nreq

First, page only on BTS0, not all the BTS. This simplifies the test and
also makes the subscriber be refcounted only on BTS0.
Then, drop the OML connection after receiving all the expected paging
requests; it will make the BSC flush the paging queue and hence avoid
TTCN3 checks erroring due to dangling subscriber talloc contexts.

Change-Id: Ibbd9168f3ac2c1cd4f4577644d75499d49c2823f
This commit is contained in:
Pau Espin 2022-05-03 11:59:15 +02:00 committed by pespin
parent 866afc2c61
commit d3339a78f8
1 changed files with 6 additions and 1 deletions

View File

@ -3607,8 +3607,10 @@ function f_TC_paging_Nreq(integer num_subscribers, boolean send_pag_load_ind) ru
}
for (i := 0; i < num_subscribers; i := i + 1) {
/* Page on LAC-CI of BTS0: */
BSSAP.send(ts_BSSAP_UNITDATA_req(g_bssap[0].sccp_addr_peer, g_bssap[0].sccp_addr_own,
ts_BSSMAP_Paging(imsis[i], valueof(ts_BSSMAP_CIL_noCell), omit, omit)));
ts_BSSMAP_Paging(imsis[i], valueof(ts_BSSMAP_CIL_LAC_CI({ts_BSSMAP_CI_LAC_CI(1, 0)})),
omit, omit)));
}
T_rx.start;
@ -3645,6 +3647,9 @@ function f_TC_paging_Nreq(integer num_subscribers, boolean send_pag_load_ind) ru
}
}
/* Drop OML connection to have all paging requests flushed: */
f_vty_transceive(BSCVTY, "drop bts connection 0 oml");
f_shutdown_helper();
}
/* Verify BSC can schedule 500 paging requests under one minute if BTS buffer is good enough */