monkeypatch thread for oslo.messaging tests

oslo.messaging requires thread patched with eventlet.

Closes-bug: #1508022
Change-Id: Iec2f394818441cec88e7b201c12e3684442672c8
This commit is contained in:
Mehdi Abaakouk 2015-10-20 15:18:07 +02:00
parent 7bba3f7300
commit 95aefb3db1
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class BaseTestCase(base.BaseTestCase):
# NOTE(sileht): oslo.messaging fake driver uses time.sleep
# for task switch, so we need to monkey_patch it
# and also ensure the correct exchange have been set
eventlet.monkey_patch(time=True)
eventlet.monkey_patch(time=True, thread=True)
# NOTE(sileht): Ensure a new oslo.messaging driver is loaded
# between each tests