Stopping Thread from oslo_service
Change-Id: I51b3db7c0fb7eafcd35f0e4f866b43037c2cbc76 Closes-bug: #1693140
This commit is contained in:
parent
3fb8c4b96e
commit
6e2183f0b6
|
@ -185,7 +185,7 @@ class TestWatcher(test_base.TestCase):
|
|||
|
||||
watcher_obj._stop_watch(path)
|
||||
|
||||
m_th.kill.assert_called()
|
||||
m_th.stop.assert_called()
|
||||
|
||||
def test_stop_watch_idle(self):
|
||||
path = '/test'
|
||||
|
|
|
@ -130,7 +130,7 @@ class Watcher(object):
|
|||
def _stop_watch(self, path):
|
||||
if self._idle.get(path):
|
||||
if self._thread_group:
|
||||
self._watching[path].kill()
|
||||
self._watching[path].stop()
|
||||
|
||||
def _watch(self, path):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue