Stopping Thread from oslo_service

Change-Id: I51b3db7c0fb7eafcd35f0e4f866b43037c2cbc76
Closes-bug: #1693140
This commit is contained in:
Janonymous 2017-06-15 09:03:50 +00:00
parent 3fb8c4b96e
commit 6e2183f0b6
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

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