[asterisk-commits] kmoore: testsuite/asterisk/trunk r3258 - in /asterisk/trunk/tests/cause_answe...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 6 09:35:13 CDT 2012


Author: kmoore
Date: Wed Jun  6 09:35:07 2012
New Revision: 3258

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3258
Log:
Remove a race condition from cause_answered_elsewhere

There is a timing problem in the way this test is constructed.  This avoids
that race condition.

Modified:
    asterisk/trunk/tests/cause_answered_elsewhere/configs/ast1/extensions.conf
    asterisk/trunk/tests/cause_answered_elsewhere/run-test

Modified: asterisk/trunk/tests/cause_answered_elsewhere/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cause_answered_elsewhere/configs/ast1/extensions.conf?view=diff&rev=3258&r1=3257&r2=3258
==============================================================================
--- asterisk/trunk/tests/cause_answered_elsewhere/configs/ast1/extensions.conf (original)
+++ asterisk/trunk/tests/cause_answered_elsewhere/configs/ast1/extensions.conf Wed Jun  6 09:35:07 2012
@@ -8,9 +8,6 @@
 exten => 101,n,Hangup()
 
 exten => 102,1,NoOp()
-exten => 102,n,Dial(local/103 at test)
-
-exten => 103,1,NoOp()
-exten => 103,n,Wait(1)
-exten => 103,n,Answer()
-exten => 103,n,Hangup()
+exten => 102,n,Wait(1)
+exten => 102,n,Answer()
+exten => 102,n,Hangup()

Modified: asterisk/trunk/tests/cause_answered_elsewhere/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cause_answered_elsewhere/run-test?view=diff&rev=3258&r1=3257&r2=3258
==============================================================================
--- asterisk/trunk/tests/cause_answered_elsewhere/run-test (original)
+++ asterisk/trunk/tests/cause_answered_elsewhere/run-test Wed Jun  6 09:35:07 2012
@@ -19,9 +19,9 @@
 class AnsweredElsewhereTest(TestCase):
     def __init__(self):
         self.event_count = 0
-        self.expected_events = 8
+        self.expected_events = 6
         self.ans_elsewhere_count = 0
-        self.expected_ans_elsewhere = 4
+        self.expected_ans_elsewhere = 2
         TestCase.__init__(self)
         self.create_asterisk()
 




More information about the asterisk-commits mailing list