From 762202288b3ad525b2b5b227851d21a8b688f420 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 11 Oct 2020 20:32:44 +0200 Subject: [PATCH] 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 --- bts/BTS_Tests.ttcn | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 221c33e96..57de013d6 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -5386,6 +5386,15 @@ testcase TC_pcu_socket_verify_info_ind() runs on test_CT { 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 */ 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;