Change in osmo-ttcn3-hacks[master]: bsc: make TC_stats_conn_fail less fragile

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Tue Sep 7 16:41:19 UTC 2021


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25396 )


Change subject: bsc: make TC_stats_conn_fail less fragile
......................................................................

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
---
M bsc/BSC_Tests.ttcn
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/96/25396/1

diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index c7f607b..2291483 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -1810,6 +1810,8 @@
 			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},

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25396
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Iaf0173239528337283b23f70840d36ad25f14950
Gerrit-Change-Number: 25396
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210907/543f27de/attachment.htm>


More information about the gerrit-log mailing list