aboutsummaryrefslogtreecommitdiffstats
path: root/gbproxy
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2021-07-23 10:23:51 +0200
committerlaforge <laforge@osmocom.org>2021-08-02 15:00:46 +0000
commitd70d45ab71fa028a9e01f822adeaed6444915b93 (patch)
tree997525dd2c20d14a3531ff9f9a40c028060f1ce8 /gbproxy
parent3c5127edebcfb445cc1444580beab19c7ab88443 (diff)
gbproxy: Fix race condition checking for unblocked BVC
It sometimes happens that the ttcn3 test checks the BVC FSM state before the gbproxy had time to process the BVC_RESET_ACK from the "SGSN". It then reports the state WAIT_RESET_ACK which will fail the test. Introduce a small wait to give the gbproxy some more time. Change-Id: Ic31b2188195c5d76b2d5aac9fa1f0b4efa5ca8b2
Diffstat (limited to 'gbproxy')
-rw-r--r--gbproxy/GBProxy_Tests.ttcn4
1 files changed, 4 insertions, 0 deletions
diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index 6aa5e0c0..035a47d6 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -631,6 +631,10 @@ function f_init(float t_guard := 30.0) runs on test_CT {
}
}
+ /* Wait to ensure the gbproxy processed the RESET_ACK messages from the SGSN.
+ * Otherwise the state might still be WAIT_RESET_ACK */
+ f_sleep(0.2);
+
/* verify all SGSN-side BVC FSM in IUT are UNBLOCKED */
for (i := 0; i < lengthof(mp_nsconfig_sgsn); i := i+1) {
f_bvc_fsm_ensure_state(mp_nsconfig_sgsn[i].nsei, 0, "UNBLOCKED");