Browse Source

[2190] do normal shutdown on msgq in statshttpd test

Jelte Jansen 12 years ago
parent
commit
63e83a8f9c
1 changed files with 2 additions and 11 deletions
  1. 2 11
      src/bin/stats/tests/test_utils.py

+ 2 - 11
src/bin/stats/tests/test_utils.py

@@ -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):