maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #00637
Re: Hanging test?
On 26 September 2012 15:43, Zygmunt Krynicki <...> wrote:
...
> There is a test fixture that sets up rabbitmq for testing. I recall
> launchpad (?) team was using that but I may be wrong as I definitely
> remember it having django test glue code so that you could write unit tests
> that get a clean rabbit system to talk to.
We are using rabbitfixture for testing, but I've just spotted that the
shared instance is not being torn down in maasserver.
src/maasserver/tests/__init__.py should look the same as
src/metadataserver/tests/__init__.py: it should have a tearDown global
defined and it doesn't.
Yes, and please forgive me, that takes advantage of a "feature" of
nose.
I'll put up a merge proposal to fix this soon.
Gavin.
References