Change in osmo-ttcn3-hacks[master]: sgsn: f_pdp_ctx_deact_mt: rework test behaviour to workaround shutdow...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Aug 7 17:56:34 UTC 2018


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/10374


Change subject: sgsn: f_pdp_ctx_deact_mt: rework test behaviour to workaround shutdown problems
......................................................................

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
---
M sgsn/SGSN_Tests.ttcn
1 file changed, 10 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/74/10374/1

diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 0a20dd6..ce796e8 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -979,11 +979,20 @@
 	} 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");
+		}
 	}
 }
 

-- 
To view, visit https://gerrit.osmocom.org/10374
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0cd1adf072f8ba40343e51e41f23a1de6a2bd62c
Gerrit-Change-Number: 10374
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180807/59a58c28/attachment.htm>


More information about the gerrit-log mailing list