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
This commit is contained in:
Daniel Willmann 2021-07-23 10:23:51 +02:00 committed by laforge
parent 3c5127edeb
commit d70d45ab71
1 changed files with 4 additions and 0 deletions

View File

@ -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");