<p>lynxis lazus <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15703">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sgsn: delay f_gmm_attach() by 50ms<br><br>Packets sent by f_gmm_attach() might take too long via layers to reach<br>the SGSN. The GMM_ATTACH_COMPL in f_gmm_attach() took soo long,<br>that it arrived after packets, which has been sent after calling f_gmm_attach().<br>This behaviour was found in TC hlr_location_cancel_request_update().<br><br>Change-Id: I0209c86e16fe616284d753e9e003f2e4d9ec9ea5<br>---<br>M sgsn/SGSN_Tests.ttcn<br>1 file changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn</span><br><span>index 281dcc9..a89a949 100644</span><br><span>--- a/sgsn/SGSN_Tests.ttcn</span><br><span>+++ b/sgsn/SGSN_Tests.ttcn</span><br><span>@@ -784,6 +784,14 @@</span><br><span>     if (is_iu(ran_index)) {</span><br><span>              as_iu_release_compl_disc();</span><br><span>  }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   /* Race condition</span><br><span style="color: hsl(120, 100%, 40%);">+      * It has shown, that GMM_ATTACH_COMPL might take some time to arrive at the SGSN through the layers.</span><br><span style="color: hsl(120, 100%, 40%);">+  * In TC hlr_location_cancel_request_update, the GMM_ATTACH_COMPL came 2ms too late, so that the Location Cancel Request</span><br><span style="color: hsl(120, 100%, 40%);">+       * arrived before it. This results in a test case failure.</span><br><span style="color: hsl(120, 100%, 40%);">+     * Delay execution by 50 ms</span><br><span style="color: hsl(120, 100%, 40%);">+    */</span><br><span style="color: hsl(120, 100%, 40%);">+   f_sleep(0.05);</span><br><span> }</span><br><span> </span><br><span> private function f_TC_attach(charstring id) runs on BSSGP_ConnHdlr {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15703">change 15703</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15703"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0209c86e16fe616284d753e9e003f2e4d9ec9ea5 </div>
<div style="display:none"> Gerrit-Change-Number: 15703 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>