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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">MGCP_Test: Relax expected number of packets in TC_one_crcx_receive_only_rtp<br><br>The testcase TC_one_crcx_receive_only_rtp performs a short RTP<br>transmission that lasts about 1 second. Then it conuts out the number of<br>packets that are transmitted and checks against a fixed value. The<br>compare values are determined using experimentation and reflect the<br>number of bytes/packets that one could expect under normal conditions on<br>an average machine.<br><br>However, there may be load sitations on the test host that may cause that<br>a too little number of packets is transmitted and the test will fail. Lets<br>reduce the number a bit as the only thing we want to make sure with this<br>is that there are at least some (more than one or two) packets transmitted<br><br>Change-Id: Ie63445d61268d178940ce8d9cfa984519c42041a<br>---<br>M mgw/MGCP_Test.ttcn<br>1 file changed, 9 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn</span><br><span>index 41def03..1a45015 100644</span><br><span>--- a/mgw/MGCP_Test.ttcn</span><br><span>+++ b/mgw/MGCP_Test.ttcn</span><br><span>@@ -1601,10 +1601,17 @@</span><br><span> </span><br><span>               stats := f_rtpem_stats_get(RTPEM[0]);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-               if (stats.num_pkts_tx < 40) {</span><br><span style="color: hsl(120, 100%, 40%);">+              /* Make sure that at least some amount of RTP packets/bytes</span><br><span style="color: hsl(120, 100%, 40%);">+            * have has been transmitted. The compare values for</span><br><span style="color: hsl(120, 100%, 40%);">+           * stats.num_pkts_tx and stats.bytes_payload_tx are determined</span><br><span style="color: hsl(120, 100%, 40%);">+                 * using a testrun and the results were devided by 2, so even</span><br><span style="color: hsl(120, 100%, 40%);">+          * in load situations we should reach the minimum amount of</span><br><span style="color: hsl(120, 100%, 40%);">+            * required packets/bytes */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                if (stats.num_pkts_tx < 24) {</span><br><span>                     setverdict(fail);</span><br><span>            }</span><br><span style="color: hsl(0, 100%, 40%);">-               if (stats.bytes_payload_tx < 190) {</span><br><span style="color: hsl(120, 100%, 40%);">+                if (stats.bytes_payload_tx < 96) {</span><br><span>                        setverdict(fail);</span><br><span>            }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15640">change 15640</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/+/15640"/><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: Ie63445d61268d178940ce8d9cfa984519c42041a </div>
<div style="display:none"> Gerrit-Change-Number: 15640 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </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: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>