[asterisk-commits] twilson: testsuite/asterisk/trunk r2667 - in /asterisk/trunk/tests/channels/S...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Nov 3 10:49:31 CDT 2011
Author: twilson
Date: Thu Nov 3 10:49:27 2011
New Revision: 2667
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2667
Log:
Fix a syntax error that didn't show up on my machine
Modified:
asterisk/trunk/tests/channels/SIP/realtime_nosipregs/run-test
asterisk/trunk/tests/channels/SIP/realtime_sipregs/run-test
Modified: asterisk/trunk/tests/channels/SIP/realtime_nosipregs/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/realtime_nosipregs/run-test?view=diff&rev=2667&r1=2666&r2=2667
==============================================================================
--- asterisk/trunk/tests/channels/SIP/realtime_nosipregs/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/realtime_nosipregs/run-test Thu Nov 3 10:49:27 2011
@@ -45,12 +45,12 @@
def __init__(self):
TestCase.__init__(self)
self.passed = False
- self.scenarios_left = {
+ self.scenarios_left = [
"test1",
"test2",
"test3",
"test4"
- }
+ ]
self.create_asterisk()
def run(self):
@@ -76,7 +76,7 @@
return
logger.debug("Passed: " + peername)
self.reset_timeout()
- self.scenarios_left.discard(peername)
+ self.scenarios_left.remove(peername)
if (len(self.scenarios_left) == 0):
self.passed = True
self.stop_reactor()
Modified: asterisk/trunk/tests/channels/SIP/realtime_sipregs/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/realtime_sipregs/run-test?view=diff&rev=2667&r1=2666&r2=2667
==============================================================================
--- asterisk/trunk/tests/channels/SIP/realtime_sipregs/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/realtime_sipregs/run-test Thu Nov 3 10:49:27 2011
@@ -40,10 +40,10 @@
def __init__(self):
TestCase.__init__(self)
self.passed = False
- self.scenarios_left = {
+ self.scenarios_left = [
"test1",
"test2",
- }
+ ]
self.create_asterisk()
def run(self):
@@ -69,7 +69,7 @@
return
logger.debug("Passed: " + peername)
self.reset_timeout()
- self.scenarios_left.discard(peername)
+ self.scenarios_left.remove(peername)
if (len(self.scenarios_left) == 0):
self.passed = True
self.stop_reactor()
More information about the asterisk-commits
mailing list