Browse Source

do not call reactor.stop() in test_commands.py

master
undeath 4 years ago committed by Adam Gibson
parent
commit
2fdebb88c2
  1. 4
      jmbase/test/test_commands.py

4
jmbase/test/test_commands.py

@ -21,12 +21,12 @@ class JMBaseProtocol(amp.AMP):
is considered criticial.
"""
if 'accepted' not in response or not response['accepted']:
reactor.stop()
raise Exception(response)
def defaultErrback(self, failure):
failure.trap(ConnectionAborted, ConnectionClosed, ConnectionDone,
ConnectionLost, UnknownRemoteError)
reactor.stop()
raise Exception(failure)
def defaultCallbacks(self, d):
d.addCallback(self.checkClientResponse)

Loading…
Cancel
Save