diff options
author | Harald Welte <laforge@osmocom.org> | 2021-03-20 15:40:00 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-03-20 15:40:00 +0100 |
commit | d5836dca1221c04dfbe939895bfdea9f6a9152e6 (patch) | |
tree | fcf6835d02dac6e49f6a10bb61bc35e3abe6d52c /sgsn | |
parent | 1317faa7fcbbc13a38375da95f9075109b97afdd (diff) |
sgsn: Avoid race condition in TC_suspend_rau()
In f_routing_area_update() we are sending a RAU Complete to the SGSN
and then immediately afterwards send a GTP-U from the simulated
GGSN to the SGSN. That GTP might reach the SGSN faster than the
RAU Complete, resulting in a test failure.
Change-Id: Ic489e0857115cf24965e413a39918edc5a8f44f8
Diffstat (limited to 'sgsn')
-rw-r--r-- | sgsn/SGSN_Tests.ttcn | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn index 79e7434d..6c8ea610 100644 --- a/sgsn/SGSN_Tests.ttcn +++ b/sgsn/SGSN_Tests.ttcn @@ -3105,6 +3105,9 @@ private function f_TC_suspend_rau(charstring id) runs on BSSGP_ConnHdlr { /* perform RAU (implicit RESUME) */ f_routing_area_update(g_pars.ra); + /* give SGSN some time to actually receve + process the RAU Complete we sent */ + f_sleep(0.5); + /* now data should be flowing again */ f_gtpu_xceive_mt(apars, f_rnd_octstring(100)); |