BTS_Tests: f_est_rll_mo(): add waiting timeout (2s)

This helps to find where the problem is a lot quicker.

Change-Id: I71ab69d85f453964749270d970c55e6f577a73a1
This commit is contained in:
Vadim Yanitskiy 2022-07-25 06:13:12 +07:00 committed by fixeria
parent 68c4cff30e
commit 2534135632
1 changed files with 5 additions and 0 deletions

View File

@ -7061,9 +7061,11 @@ private function f_l1_exp_lapdm(template LapdmFrame exp, float t := 3.0) runs on
/* establish one Radio Link Layer via SABM -> UA. Use l3 for contention resolution */
private function f_est_rll_mo(uint3_t sapi, RslLinkId link_id, octetstring l3) runs on ConnHdlr {
timer T := 2.0;
/* send SABM from MS -> BTS */
f_tx_lapdm(ts_LAPDm_SABM(sapi, cr_MO_CMD, true, l3), link_id);
/* expect RLL EST IND on Abis */
T.start;
alt {
[l3 != ''O] RSL.receive(tr_RSL_EST_IND(g_chan_nr, link_id, l3));
[l3 == ''O] RSL.receive(tr_RSL_EST_IND_NOL3(g_chan_nr, link_id));
@ -7071,6 +7073,9 @@ private function f_est_rll_mo(uint3_t sapi, RslLinkId link_id, octetstring l3) r
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Failing due to RSL_ERROR_IND");
}
[] RSL.receive { repeat; }
[] T.timeout {
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Timeout waiting for RLL EST IND");
}
}
/* expect UA from BTS -> MS */
f_l1_exp_lapdm(tr_LAPDm_UA(sapi, cr_MT_RSP, true, l3));