<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25025">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gbproxy: Fix race condition checking for unblocked BVC<br><br>It sometimes happens that the ttcn3 test checks the BVC FSM state before<br>the gbproxy had time to process the BVC_RESET_ACK from the "SGSN". It<br>then reports the state WAIT_RESET_ACK which will fail the test.<br><br>Introduce a small wait to give the gbproxy some more time.<br><br>Change-Id: Ic31b2188195c5d76b2d5aac9fa1f0b4efa5ca8b2<br>---<br>M gbproxy/GBProxy_Tests.ttcn<br>1 file changed, 4 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/25025/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn</span><br><span>index 6aa5e0c..035a47d 100644</span><br><span>--- a/gbproxy/GBProxy_Tests.ttcn</span><br><span>+++ b/gbproxy/GBProxy_Tests.ttcn</span><br><span>@@ -631,6 +631,10 @@</span><br><span>                 }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* Wait to ensure the gbproxy processed the RESET_ACK messages from the SGSN.</span><br><span style="color: hsl(120, 100%, 40%);">+  * Otherwise the state might still be WAIT_RESET_ACK */</span><br><span style="color: hsl(120, 100%, 40%);">+       f_sleep(0.2);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>      /* verify all SGSN-side BVC FSM in IUT are UNBLOCKED */</span><br><span>      for (i := 0; i < lengthof(mp_nsconfig_sgsn); i := i+1) {</span><br><span>          f_bvc_fsm_ensure_state(mp_nsconfig_sgsn[i].nsei, 0, "UNBLOCKED");</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25025">change 25025</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/+/25025"/><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: Ic31b2188195c5d76b2d5aac9fa1f0b4efa5ca8b2 </div>
<div style="display:none"> Gerrit-Change-Number: 25025 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>