[asterisk-commits] pabelanger: branch group/cdr_test_log_congestion r2039 - /asterisk/team/group...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 30 15:27:06 CDT 2011
Author: pabelanger
Date: Tue Aug 30 15:27:02 2011
New Revision: 2039
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2039
Log:
Add addErrback callback
Modified:
asterisk/team/group/cdr_test_log_congestion/lib/python/asterisk/CDRTestCase.py
Modified: asterisk/team/group/cdr_test_log_congestion/lib/python/asterisk/CDRTestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/group/cdr_test_log_congestion/lib/python/asterisk/CDRTestCase.py?view=diff&rev=2039&r1=2038&r2=2039
==============================================================================
--- asterisk/team/group/cdr_test_log_congestion/lib/python/asterisk/CDRTestCase.py (original)
+++ asterisk/team/group/cdr_test_log_congestion/lib/python/asterisk/CDRTestCase.py Tue Aug 30 15:27:02 2011
@@ -82,12 +82,15 @@
if cdr_expect.match(cdr_file):
self.passed = True
+ def ami_logoff(self, ami):
+ self.stop_reactor()
+
def ami_connect(self, ami):
TestCase.ami_connect(self, ami)
self.ami[0].originate(
channel = 'Local/1 at default',
application = 'Echo'
- )
+ ).addErrback(self.ami_logoff)
def run(self):
TestCase.run(self)
More information about the asterisk-commits
mailing list