<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23425">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sgsn: Avoid race condition in TC_suspend_rau()<br><br>In f_routing_area_update() we are sending a RAU Complete to the SGSN<br>and then immediately afterwards send a GTP-U from the simulated<br>GGSN to the SGSN.  That GTP might reach the SGSN faster than the<br>RAU Complete, resulting in a test failure.<br><br>Change-Id: Ic489e0857115cf24965e413a39918edc5a8f44f8<br>---<br>M sgsn/SGSN_Tests.ttcn<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/25/23425/1</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 79e7434..6c8ea61 100644</span><br><span>--- a/sgsn/SGSN_Tests.ttcn</span><br><span>+++ b/sgsn/SGSN_Tests.ttcn</span><br><span>@@ -3105,6 +3105,9 @@</span><br><span>  /* perform RAU (implicit RESUME) */</span><br><span>  f_routing_area_update(g_pars.ra);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* give SGSN some time to actually receve + process the RAU Complete we sent */</span><br><span style="color: hsl(120, 100%, 40%);">+       f_sleep(0.5);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>      /* now data should be flowing again */</span><br><span>       f_gtpu_xceive_mt(apars, f_rnd_octstring(100));</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23425">change 23425</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/+/23425"/><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: Ic489e0857115cf24965e413a39918edc5a8f44f8 </div>
<div style="display:none"> Gerrit-Change-Number: 23425 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>