oslo.service/oslo_service
apporc f5d273858c doing monkey_patch for unittest.
1.  Modules in oslo_service uses eventlet, but they are not monkey_patched.
    This patch add monkey_patch to all unittest code.
    The original unittest code does not really work, it muddles through.

2.  According to what Elena Ezhova said, there is a bug about patching os module on
    windows [1]. As a result, the monkey patch bypass os module on windows.

3.  subprocess module is not monkey_patched by default, we should use
    eventlet.green.subprocess explicitly.

4.  test_stop_immediately() does not work as expected, the reason it passes is because
    foo() never get a change to run, if foo get a change to run, the blocking version
    time.sleep() in it will block the main thread. We should give it a chance to run
    so that the test counts.

[1] https://bitbucket.org/eventlet/eventlet/issues/132/eventletmonkey_patch-breaks

Change-Id: Ic586be571b78fc096f77aadc6c9f3c85e4f26c80
Signed-off-by: apporc <appleorchard2000@gmail.com>
2015-09-15 11:13:49 +08:00
..
2015-09-15 11:13:49 +08:00
2015-05-21 17:00:17 +03:00
2015-08-19 12:01:40 +00:00
2015-06-24 16:23:12 +03:00
2015-06-11 15:55:50 +03:00
2015-06-24 16:23:12 +03:00
2015-08-19 12:01:40 +00:00