<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26322">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSC_Tests: fix a race condition in TC_fh_params_handover_cmd<br><br>As can be seen from ttcn3-bsc-test run #1565 on Jenkins [1], it may<br>happen that the VTY command requesting handover reaches the IUT earlier<br>than the SCCP 'SACK CC' message.  In this case, the 'SUBSCR_CONN' FSM<br>remains in state 'WAIT_CC', so we get an error:<br><br>  (bts=0,trx=0,ts=0,ss=0) (ARFCN 871) --> BTS 1 Manually triggering Handover from VTY<br>  SUBSCR_CONN(msc0-conn204)[0x5633b2877af0]{WAIT_CC}: Received Event HANDOVER_START<br>  SUBSCR_CONN(msc0-conn204)[0x5633b2877af0]{WAIT_CC}: Event HANDOVER_START not permitted<br><br>The easiest way to avoid this is to introduce and artificial delay<br>after the connection establishment and before triggering the handover.<br><br>[1] https://jenkins.osmocom.org/jenkins/view/TTCN3/job/ttcn3-bsc-test/1565/<br><br>Change-Id: I19f7ca942e22d7930a56d1a525414f137a9ef831<br>---<br>M bsc/BSC_Tests.ttcn<br>1 file changed, 1 insertion(+), 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/22/26322/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn</span><br><span>index 4fdd059..dda1dcd 100644</span><br><span>--- a/bsc/BSC_Tests.ttcn</span><br><span>+++ b/bsc/BSC_Tests.ttcn</span><br><span>@@ -8888,6 +8888,7 @@</span><br><span> </span><br><span>  /* Establish a dedicated channel, so we can trigger handover */</span><br><span>      dt := f_est_dchan(f_rnd_ra_cs(), 23, f_rnd_octstring(16));</span><br><span style="color: hsl(120, 100%, 40%);">+    f_sleep(0.5);</span><br><span> </span><br><span>    /* Trigger handover from BTS0 to BTS1 */</span><br><span>     f_bts_0_cfg(BSCVTY, { "neighbor bts 1" });</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26322">change 26322</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/+/26322"/><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: I19f7ca942e22d7930a56d1a525414f137a9ef831 </div>
<div style="display:none"> Gerrit-Change-Number: 26322 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>