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
This commit is contained in:
Alexander Couzens 2018-08-07 17:21:24 +02:00 committed by Harald Welte
parent 42d1d5baf7
commit 5e71c14750
1 changed files with 10 additions and 1 deletions

View File

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