laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22786 )
Change subject: stp: Time out after 5s if expected M3UA doesn't arrive ...................................................................... stp: Time out after 5s if expected M3UA doesn't arrive No need to wait for the global timeout here. Change-Id: I279aacf2215ccd63a6e52c6a71cda3b500a3795c --- M stp/STP_Tests_M3UA.ttcn 1 file changed, 6 insertions(+), 0 deletions(-) Approvals: laforge: Looks good to me, approved pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn index b76d9be..1c25bae 100644 --- a/stp/STP_Tests_M3UA.ttcn +++ b/stp/STP_Tests_M3UA.ttcn @@ -90,6 +90,8 @@ friend function f_M3UA_exp(integer idx, template (present) PDU_M3UA msg) runs on RAW_M3UA_CT { var M3UA_RecvFrom rx; + timer T := 5.0; + T.start; alt { [] M3UA[idx].receive(t_M3UA_RecvFrom(msg)) { setverdict(pass); @@ -99,6 +101,10 @@ "while waiting for ", msg); mtc.stop; } + [] T.timeout { + setverdict(fail, "Timeout waiting for M3UA[", idx, "] ", msg); + mtc.stop; + } } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22786 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I279aacf2215ccd63a6e52c6a71cda3b500a3795c Gerrit-Change-Number: 22786 Gerrit-PatchSet: 3 Gerrit-Owner: laforge <lafo...@osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <lafo...@osmocom.org> Gerrit-Reviewer: pespin <pes...@sysmocom.de> Gerrit-MessageType: merged