From 2fdebb88c28a9a183269d1eb00ee81b17ddc1897 Mon Sep 17 00:00:00 2001 From: undeath Date: Mon, 2 Aug 2021 21:05:59 +0200 Subject: [PATCH] do not call reactor.stop() in test_commands.py --- jmbase/test/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jmbase/test/test_commands.py b/jmbase/test/test_commands.py index 83a5423..3971670 100644 --- a/jmbase/test/test_commands.py +++ b/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)