Merge "Fix multiprocessing call in unit test"

This commit is contained in:
Zuul 2020-02-11 13:21:33 +00:00 committed by Gerrit Code Review
commit 48ef7c9188
1 changed files with 1 additions and 1 deletions

View File

@ -1830,7 +1830,7 @@ class TestGenericHardwareManager(base.IronicAgentTest):
internal_info['disk_erasure_concurrency'] = 10
mocked_dispatch.return_value = 'erased device'
apply_result = multiprocessing.pool.ApplyResult({}, None, None)
apply_result = multiprocessing.pool.ApplyResult
apply_result._success = True
apply_result._ready = True
apply_result.get = lambda: 'erased device'