<p>Kevin Harwell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/11461">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">voicemail/polling: Update due to removal of stasis cache from voicemail<br><br>When voicemail used the stasis cache it raised the message waiting event 3<br>times for the same mailbox. Now that voicemail no longer uses the stasis cache<br>only one event is raised per mailbox no matter how many subscribers it has.<br><br>Change-Id: Ifaea4d431c0e75513c6a4881834a0a347963a296<br>---<br>M tests/apps/voicemail/polling/poll_same_mailbox/run-test<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/61/11461/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/apps/voicemail/polling/poll_same_mailbox/run-test b/tests/apps/voicemail/polling/poll_same_mailbox/run-test</span><br><span>index cabf515..72eddce 100755</span><br><span>--- a/tests/apps/voicemail/polling/poll_same_mailbox/run-test</span><br><span>+++ b/tests/apps/voicemail/polling/poll_same_mailbox/run-test</span><br><span>@@ -11,6 +11,7 @@</span><br><span> import sys</span><br><span> import logging</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+from asterisk.asterisk import Asterisk</span><br><span> from asterisk.test_case import TestCase</span><br><span> from asterisk.voicemail import VoiceMailMailboxManagement</span><br><span> from twisted.internet import reactor</span><br><span>@@ -49,14 +50,14 @@</span><br><span> LOGGER.error("Expected 'Old' to be 0")</span><br><span> self.stop_test()</span><br><span> self.counter += 1</span><br><span style="color: hsl(0, 100%, 40%);">- if self.counter == 3:</span><br><span style="color: hsl(120, 100%, 40%);">+ if self.counter == 1:</span><br><span> self.counter = 0</span><br><span> if not self.voicemailManager.remove_mailbox("default", "1234"):</span><br><span> LOGGER.error("Failed to remove voicemail")</span><br><span> self.stop_test()</span><br><span> elif new == 0 and waiting == 0 and old == 0:</span><br><span> self.counter += 1</span><br><span style="color: hsl(0, 100%, 40%);">- if self.counter == 3:</span><br><span style="color: hsl(120, 100%, 40%);">+ if self.counter == 1:</span><br><span> self.stop_test(True)</span><br><span> </span><br><span> def ami_connect(self, ami):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/11461">change 11461</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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.asterisk.org/c/testsuite/+/11461"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ifaea4d431c0e75513c6a4881834a0a347963a296 </div>
<div style="display:none"> Gerrit-Change-Number: 11461 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>