]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2190] do normal shutdown on msgq in statshttpd test
authorJelte Jansen <jelte@isc.org>
Wed, 19 Sep 2012 08:03:30 +0000 (10:03 +0200)
committerJelte Jansen <jelte@isc.org>
Wed, 19 Sep 2012 08:03:30 +0000 (10:03 +0200)
src/bin/stats/tests/test_utils.py

index f8abb57a6557338aed93ed900d909e904c6d4570..55b08cba19da9001bc5cf0813ecf998d4c6c0d32 100644 (file)
@@ -107,19 +107,10 @@ class MockMsgq:
 
     def run(self):
         self._started.set()
-        try:
-            self.msgq.run()
-        except Exception:
-            pass
-        finally:
-            # explicitly shut down the socket of the msgq before
-            # shutting down the msgq
-            self.msgq.listen_socket.shutdown(msgq.socket.SHUT_RDWR)
-            self.msgq.shutdown()
+        self.msgq.run()
 
     def shutdown(self):
-        # do nothing
-        pass
+        self.msgq.shutdown()
 
 class MockCfgmgr:
     def __init__(self):