aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-11 20:32:44 +0200
committerlaforge <laforge@osmocom.org>2020-10-12 13:12:26 +0000
commit762202288b3ad525b2b5b227851d21a8b688f420 (patch)
tree1a67e540e05971af7f19ff5104e0c94642dfdf78
parent475074bd3b84263ce3db225e3f2b949536580fd9 (diff)
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
-rw-r--r--bts/BTS_Tests.ttcn9
1 files changed, 9 insertions, 0 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 221c33e9..57de013d 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;