bsc: make TC_stats_conn_fail less fragile

Add a delay between sending the RSL Conn Fail IND and checking the stats
values, so that osmo-bsc has a good chance of receiving the message and
promoting the failure into the stats values first.

Even though jenkins shows no failures, when testing locally, this test
fails a lot for me without that bit of delay.

Change-Id: Iaf0173239528337283b23f70840d36ad25f14950
This commit is contained in:
Neels Hofmeyr 2021-09-07 18:39:21 +02:00 committed by neels
parent 2315874f28
commit 58be48a16a
1 changed files with 2 additions and 0 deletions

View File

@ -1804,6 +1804,8 @@ private function f_TC_stats_conn_fail(charstring id) runs on MSC_ConnHdlr {
ts_RSL_CONN_FAIL_IND(g_chan_nr, RSL_ERR_RADIO_LINK_FAIL),
IPAC_PROTO_RSL_TRX0));
f_sleep(1.0);
/* Expect stats to be 1 */
expect := {
{name := "TTCN3.bts.0.chan.rf_fail", mtype := "c", min := 1, max := 1},