Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
63e83a8f
Commit
63e83a8f
authored
Sep 19, 2012
by
Jelte Jansen
Browse files
[2190] do normal shutdown on msgq in statshttpd test
parent
7230b23e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/stats/tests/test_utils.py
View file @
63e83a8f
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment