mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix failing zmq tests
This is just a stopgap to prevent the ioloop from shutting down before the procs die off.
This commit is contained in:
parent
66939939c1
commit
72752f53ff
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
from __future__ import absolute_import
|
||||
import os
|
||||
import threading
|
||||
import time
|
||||
|
||||
import zmq.eventloop.ioloop
|
||||
# support pyzmq 13.0.x, TODO: remove once we force people to 14.0.x
|
||||
|
@ -74,6 +75,7 @@ class BaseZMQReqCase(TestCase):
|
|||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
cls.process_manager.kill_children()
|
||||
time.sleep(2) # Give the procs a chance to fully close before we stop the io_loop
|
||||
cls.io_loop.stop()
|
||||
cls.server_channel.close()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue