From 58be48a16ab339f84a25a80fe7145b2fd3b73836 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 7 Sep 2021 18:39:21 +0200 Subject: [PATCH] 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 --- bsc/BSC_Tests.ttcn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 74cdaebbe..077daba3c 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -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},