diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2013-01-02 14:44:45 +0000 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2013-01-03 07:33:35 +0000 |
| commit | 70942a357f992ec3efd820bc0736baa276c31660 (patch) | |
| tree | 2332aec02176ba2cdb40bb9e80b8852d2224b900 /openstack/common/plugin/pluginmanager.py | |
| parent | ffeb0855085617095f19296770a1223cb5641d1c (diff) | |
| download | oslo-70942a357f992ec3efd820bc0736baa276c31660.tar.gz oslo-70942a357f992ec3efd820bc0736baa276c31660.tar.xz oslo-70942a357f992ec3efd820bc0736baa276c31660.zip | |
Ensure proxy callback threads exit during tests
On the consumer side, each message is consumed in a separate thread
but we currently have no way of waiting for all these threads to
complete.
In BaseRpcTestCase.test_call_timeout(), we complete the thread while
there is still a message handler running on the other side. This can
mean the consumer attempting to send its reply while other tests
are running, which clearly is a bad thing.
Make the connection close() and reset() methods in the kombu and qpid
drivers wait on proxy object threads before returning to avoid this
situation.
Change-Id: I8fb84b1dc7f31196ef27a5d1f8c4a3346b03e0ae
Diffstat (limited to 'openstack/common/plugin/pluginmanager.py')
0 files changed, 0 insertions, 0 deletions
