summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-10 14:14:12 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-10 14:21:39 +0700
commit96e8c80b4850c41b870d96e5dddb4b8cd6c9fd78 (patch)
treea1fb3ee11458e5ef80dd8885565100e0f723f368
parent82af0b53d4d711853f414ad1a3197cb767665360 (diff)
BTS: fix latest: ignore mismatching messages in as_rsl_init_guard()
Another surprise from the latest osmo-bts release: it may send us CCCH LOAD INDication message during the RSL bring up. Ignore it. Change-Id: Iab22b620a5f7b07fe03c1b13bebef2931d14879d
-rw-r--r--bts/BTS_Tests.ttcn2
1 files changed, 2 insertions, 0 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 012327e..b098fc6 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -188,6 +188,8 @@ private altstep as_rsl_init_guard() runs on test_CT {
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
"Timeout waiting for RSL bring up");
}
+ /* osmo-bts may send us CCCH LOAD INDication or whatever else */
+ [] RSL_CCHAN.receive(ASP_RSL_Unitdata:?) { repeat; }
}
function f_init_rsl(charstring id) runs on test_CT {