[asterisk-commits] mjordan: testsuite/asterisk/trunk r4600 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 25 16:07:38 CST 2014


Author: mjordan
Date: Sat Jan 25 16:07:32 2014
New Revision: 4600

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4600
Log:
apptest: Reset reactor time out on each expected result

Some application tests, such as the say test, have long running scenarios.
Normally, apptest will reset the reactor timeout between each scenario, but
for a single long running scenario this does not work well. Resetting the
reactor timeout on expected results allows a long scenario to finish to
completion.

Modified:
    asterisk/trunk/lib/python/asterisk/apptest.py

Modified: asterisk/trunk/lib/python/asterisk/apptest.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/apptest.py?view=diff&rev=4600&r1=4599&r2=4600
==============================================================================
--- asterisk/trunk/lib/python/asterisk/apptest.py (original)
+++ asterisk/trunk/lib/python/asterisk/apptest.py Sat Jan 25 16:07:32 2014
@@ -178,6 +178,7 @@
         expected_result The name of the result that occurred
         """
         self._expected_results[expected_result] = True
+        self.reset_timeout()
 
 
 class ChannelObject(object):




More information about the asterisk-commits mailing list