mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Fix torando loop thread issue
This commit is contained in:
parent
aff15d4c04
commit
481372b995
@ -333,11 +333,12 @@ class SaltMessageClientCleanupTest(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||
'''
|
||||
test message client cleanup on close
|
||||
'''
|
||||
orig_loop = tornado.ioloop.IOLoop()
|
||||
orig_loop.make_current()
|
||||
opts = self.get_temp_config('master')
|
||||
client = SaltMessageClient(opts, 'localhost', self.port)
|
||||
|
||||
# Mock the io_loop's stop method so we know when it has been called.
|
||||
orig_loop = tornado.ioloop.IOLoop.current()
|
||||
orig_loop.real_stop = orig_loop.stop
|
||||
orig_loop.stop_called = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user