bts: Make TC_pcu_socket_verify_info_ind pass
f_init / f_init_pcu simply save the first PCU_INFO_IND in g_pcu_last_info. That first one might still be wrong as the PCU might connect to the BTS before the BTS is configured accordingly. Let's wait for 2 seconds and actually use the last (most recent) PCU_INFO_IND for the test. Change-Id: I45717605fde66bf870bcb6e2560f0fc753d05d95
This commit is contained in:
parent
475074bd3b
commit
762202288b
|
@ -5386,6 +5386,15 @@ testcase TC_pcu_socket_verify_info_ind() runs on test_CT {
|
||||||
|
|
||||||
f_init();
|
f_init();
|
||||||
|
|
||||||
|
/* actually give the BTS some time to fully come up and to send a PCU INFO IND with the correct
|
||||||
|
* information */
|
||||||
|
timer T := 2.0;
|
||||||
|
T.start;
|
||||||
|
alt {
|
||||||
|
[] as_pcu_info_ind(PCU, g_pcu_conn_id, g_pcu_last_info) { repeat; }
|
||||||
|
[] T.timeout {}
|
||||||
|
}
|
||||||
|
|
||||||
/* Verify cell_id */
|
/* Verify cell_id */
|
||||||
var uint16_t cell_id_si3 := si3.payload.si3.cell_id;
|
var uint16_t cell_id_si3 := si3.payload.si3.cell_id;
|
||||||
var uint16_t cell_id_pcu := g_pcu_last_info.u.info_ind.cell_id;
|
var uint16_t cell_id_pcu := g_pcu_last_info.u.info_ind.cell_id;
|
||||||
|
|
Loading…
Reference in New Issue