aboutsummaryrefslogtreecommitdiffstats
path: root/sgsn
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-08-07 17:21:24 +0200
committerHarald Welte <laforge@gnumonks.org>2018-08-07 18:12:52 +0000
commit5e71c14750c06e5511ea4522b67f69d96329f8ee (patch)
tree9e428aa9fe77041181a3d5b17358a58b10084c0d /sgsn
parent42d1d5baf73d9fe2d66a8d5901d18c0f6bcd77fb (diff)
sgsn: f_pdp_ctx_deact_mt: rework test behaviour to workaround shutdown problems
When introducing multiple BSSGP instances, this tests has problem when shutting down the test. Change-Id: I0cd1adf072f8ba40343e51e41f23a1de6a2bd62c
Diffstat (limited to 'sgsn')
-rw-r--r--sgsn/SGSN_Tests.ttcn11
1 files changed, 10 insertions, 1 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 0a20dd69..ce796e82 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -979,11 +979,20 @@ function f_pdp_ctx_deact_mt(inout PdpActPars apars, boolean error_ind := false)
} else {
GTP.send(ts_GTPC_DeletePDP(peer, seq_nr, apars.sgsn_tei_c, apars.nsapi, '1'B));
}
+
+ timer T := 5.0;
+ T.start;
+
alt {
[] BSSGP.receive(tr_BD_L3_MT(tr_SM_DEACT_PDP_REQ_MT(apars.tid, ?, true))) {
BSSGP.send(ts_SM_DEACT_PDP_ACCEPT_MO(apars.tid));
}
- [not error_ind] GTP.receive(tr_GTPC_MsgType(?, deletePDPContextResponse, apars.ggsn_tei_c)) { }
+ [not error_ind] GTP.receive(tr_GTPC_MsgType(?, deletePDPContextResponse, apars.ggsn_tei_c)) {
+ repeat;
+ }
+ [] T.timeout {
+ setverdict(fail, "Waiting for SM_DEACT_PDP_REQ_MT");
+ }
}
}