pcu: TC_t3169: Check ul block reaches SGSN before timer expiration

Change-Id: Ic6fd82dc5037d08278d36aed9b6e72e80da5c42f
This commit is contained in:
Pau Espin 2019-10-07 15:26:52 +02:00
parent 596faa40dc
commit cf47a920e5
1 changed files with 10 additions and 0 deletions

View File

@ -974,6 +974,10 @@ testcase TC_t3169() runs on RAW_PCU_Test_CT {
var PCUIF_Message pcu_msg;
var octetstring data;
var boolean ok;
var OCT4 tlli := '00000001'O;
/* Initialize NS/BSSGP side */
f_init_bssgp();
info_ind := valueof(ts_PCUIF_INFO_default);
/* Set timer to 1 sec (default 5) to speedup test: */
@ -982,6 +986,10 @@ testcase TC_t3169() runs on RAW_PCU_Test_CT {
/* Initialize the PCU interface abstraction */
f_init_raw(testcasename(), info_ind);
/* Establish BSSGP connection to the PCU */
f_bssgp_establish();
f_bssgp_client_llgmm_assign('FFFFFFFF'O, tlli);
/* Establish an Uplink TBF */
ok := f_establish_tbf(rr_imm_ass);
if (not ok) {
@ -998,6 +1006,8 @@ testcase TC_t3169() runs on RAW_PCU_Test_CT {
/* Send one UL block and make sure it is ACKED fine */
f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1);
f_rx_rlcmac_dl_block_exp_ack_nack(dl_block);
/* UL block should be received in SGSN */
BSSGP[0].receive(tr_BSSGP_UL_UD(tlli, mp_gb_cfg.cell_id));
/* Wait until T3169 fires (plus 1 extra sec to make sure) */
f_sleep(int2float(info_ind.t3169) + 1.0);