[Asterisk-code-review] voicemail/polling: Update due to removal of stasis cache from voicemail (...testsuite[master])

Kevin Harwell asteriskteam at digium.com
Wed Jun 12 16:16:14 CDT 2019


Kevin Harwell has uploaded this change for review. ( https://gerrit.asterisk.org/c/testsuite/+/11461


Change subject: voicemail/polling: Update due to removal of stasis cache from voicemail
......................................................................

voicemail/polling: Update due to removal of stasis cache from voicemail

When voicemail used the stasis cache it raised the message waiting event 3
times for the same mailbox. Now that voicemail no longer uses the stasis cache
only one event is raised per mailbox no matter how many subscribers it has.

Change-Id: Ifaea4d431c0e75513c6a4881834a0a347963a296
---
M tests/apps/voicemail/polling/poll_same_mailbox/run-test
1 file changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/61/11461/1

diff --git a/tests/apps/voicemail/polling/poll_same_mailbox/run-test b/tests/apps/voicemail/polling/poll_same_mailbox/run-test
index cabf515..72eddce 100755
--- a/tests/apps/voicemail/polling/poll_same_mailbox/run-test
+++ b/tests/apps/voicemail/polling/poll_same_mailbox/run-test
@@ -11,6 +11,7 @@
 import sys
 import logging
 
+from asterisk.asterisk import Asterisk
 from asterisk.test_case import TestCase
 from asterisk.voicemail import VoiceMailMailboxManagement
 from twisted.internet import reactor
@@ -49,14 +50,14 @@
                 LOGGER.error("Expected 'Old' to be 0")
                 self.stop_test()
             self.counter += 1
-            if self.counter == 3:
+            if self.counter == 1:
                 self.counter = 0
                 if not self.voicemailManager.remove_mailbox("default", "1234"):
                     LOGGER.error("Failed to remove voicemail")
                     self.stop_test()
         elif new == 0 and waiting == 0 and old == 0:
             self.counter += 1
-            if self.counter == 3:
+            if self.counter == 1:
                 self.stop_test(True)
 
     def ami_connect(self, ami):

-- 
To view, visit https://gerrit.asterisk.org/c/testsuite/+/11461
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Change-Id: Ifaea4d431c0e75513c6a4881834a0a347963a296
Gerrit-Change-Number: 11461
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190612/8d867f79/attachment.html>


More information about the asterisk-code-review mailing list