Skip to content

Commit

Permalink
Do not monkey patch eventlet in unit tests
Browse files Browse the repository at this point in the history
Unit tests are sufficiently focused that eventlet monkey-patching
should not be required. Here it is turned off.

Change-Id: Ib3c346cccaada054e53e903fbfe80be45b9649ad
  • Loading branch information
cdent committed Sep 28, 2017
1 parent 8123f04 commit ca1a2c4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions nova/tests/unit/__init__.py
Expand Up @@ -22,16 +22,8 @@
:platform: Unix
"""

import eventlet

from nova import objects

eventlet.monkey_patch(os=False)

# NOTE(alaski): Make sure this is done after eventlet monkey patching otherwise
# the threading.local() store used in oslo_messaging will be initialized to
# threadlocal storage rather than greenthread local. This will cause context
# sets and deletes in that storage to clobber each other.
# NOTE(comstud): Make sure we have all of the objects loaded. We do this
# at module import time, because we may be using mock decorators in our
# tests that run at import time.
Expand Down

0 comments on commit ca1a2c4

Please sign in to comment.